Skip to content
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

Merged
merged 5 commits into from
Sep 23, 2024

Conversation

perkinslr
Copy link
Contributor

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:

  • Compiles without warnings
  • Game runs without errors
  • (For compatibility patches) ...with and without patched mod loaded
  • Playtested a colony (specify how long)

@perkinslr perkinslr requested review from a team as code owners September 22, 2024 21:07
Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10984399166.zip

@github-actions github-actions bot added the Download in Comments This PR has a zipfile download available. label Sep 22, 2024
@perkinslr perkinslr force-pushed the fix-pa-inventory-display branch from ca7acc0 to 5fe2aca Compare September 22, 2024 21:10
Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10984419851.zip

Thorbane
Thorbane previously approved these changes Sep 23, 2024
Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10987967659.zip

Copy link

You can download the rebuilt assembly for this PR here: https://combatextended.lp-programming.com/CombatExtended-10988146887.zip

@N7Huntsman N7Huntsman merged commit 6464400 into Development Sep 23, 2024
3 checks passed
@N7Huntsman N7Huntsman deleted the fix-pa-inventory-display branch September 23, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Download in Comments This PR has a zipfile download available.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants