-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unarmed Damage Die Implementation #148
base: main
Are you sure you want to change the base?
Conversation
I have some concern about this implementation in that this means nobody can change the unarmed strike damage at all (outside of effects that apply to all damage). I see 2 probably better solutions:
|
@MangoFVTT That is a valid concern. I like option 2, I can work on implementing that. If option 1 is preferable over 2 I'm cool with that as well. |
@MangoFVTT I added the possible die values of unarmed strike to Feel free to give me any suggestions or nits you want, this is my first time developing in Foundry so I'm out of my element! |
Looks good to me, much better than hardcoding them for sure 👍 |
I have some further concerns that apply to the current implementation as well. I think the approach of having the unarmed strike damage depend on the id of the item is flawed. It's opaque to the user why the unarmed strike deals the damage it does and ignores the formula. I think we should solve this using the formula. Though I am aware that fitting a function to the table may not be easy. On another note; We should definitely move the other "tables" that we use for the derived statistics to the config as well. I don't believe they are right now. |
@stanavdb Perhaps the best way to do it would be to have the unarmed strike scale be an @'able property? In the dnd5e system for example you can refer to things like @barbarian.rage.scale that just automatically calculates the correct number but still allows you to call it in any damage field without hardcoding it to an item name or specific item. We could do the same here |
That's a great suggestion! Seems like the best way to do it. |
I'm going to see if I can figure out how to do this! I should be able too. If it's too steep a learning curve for me, I'll let you know so it can be taken care of by someone more fitting. |
It should be fairly easy. Just move the calculations over to the |
I'm converting this a draft, as its still in progress |
Type
What type of pull request is this? (e.g., Bug fix, Feature, Refactor, etc.)
Description
Add logic to calculate damage die for unarmed strikes.
Related Issue
Closes #91
How Has This Been Tested?
Built and ran on local foundry. Screenshots below.
Screenshots (if applicable)
I had one rank in Athletics to confirm damage scales with
Athletics
but die scales withStr
attribute.Str 6
Str 1
Str 4
Str 8
Str 9
Checklist:
Additional context
Add any other context or information here that would be useful for reviewers.