-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
First Version Of Encumbrance By Sentence #57243
First Version Of Encumbrance By Sentence #57243
Conversation
Note for me for tomorrow make sure a negative number isn't possible. |
Are these values offset by strength scores, since it's all about weight now? The football player obviously has an easier time fielding this encumbering weight than the office nerd that never works out. |
the first implementation will just be for helmets, which doesn't have much to do with strength. In the future when the system is expanded, I'm not sure. |
Summary
None
Purpose of change
@Aerin-of-the-Toast mentioned that they wanted to overhaul all the helmets in the game since they found research that the major thing that effects helmet encumbrance is weight. They created a chart with some brackets based on weight and them some flat modifiers so that they could fairly modify all helmets... This sounds like part of what I want to do in the future to all encumbrance values so I figured I could build some preliminary infrastructure now so helmets should be overhauled in the desired uniform way while leading to further work in the future.
Describe the solution
Limbs can now describe a set of fixed weight to encumbrance values for the limb in json. These can then be used as reference points to interpolate other weight to encumbrance values.
When defining an armor entry instead of giving a number for encumbrance you can give a set of encumberance_modifiers.
This will make it so encumbrance is calculated by doing a linear interpolation on the two closest weight to encumbrance values for the limb and then modifying it by any encumbrance_modifiers that have been provided for the item.
The encumbrance modifiers for helmets are:
Otherwise everything just works ™️ still.
Describe alternatives you've considered
Testing
it works for the army helmet and motorcycle helmet I added in this PR.
Additional context
I'm starting this as draft for now so I can get some feedback and write some documentation tomorrow.