-
Notifications
You must be signed in to change notification settings - Fork 259
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
Defer gear-tab armor calcs to CE_Utility #3439
Conversation
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10984399166.zip |
ca7acc0
to
5fe2aca
Compare
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10984419851.zip |
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10987967659.zip |
You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10988146887.zip |
Changes
Instead of trying to duplicate the functionality in CE_Utility inline in the gear tab, we just use the same function to calculate location specific armor values.
Reasoning
Changes to location based armor calculations (like the natural armor, and later location-specific partial armor) lead to the two versions of the code getting out of sync. Always using the same calculation means the reported value should match the value the damage system actually uses.
Alternatives
Fix the de-sync one issue at a time, forever.
Testing
Check tests you have performed: