-
Notifications
You must be signed in to change notification settings - Fork 182
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
Updated Aging Effects to Include Clan Reputation Modifiers & Glass Jaw Gain #6575
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Replaced direct access to `Person.getReputation()` with `getAdjustedReputation()` for better handling of age, clan affiliation, and campaign options. - Introduced `applyAgingSPA()` and `getReputationAgeModifier()` for age-related effects and reputation adjustments. - Simplified and optimized existing logic for skill and reputation calculations. - Introduced `isClanCampaign()` to determine clan-based campaign properties. - Fixed formatting inconsistencies in Resupply class documentation.
- Replaced direct access to `Person.getReputation()` with `getAdjustedReputation()` for better handling of age, clan affiliation, and campaign options. - Introduced `applyAgingSPA()` and `getReputationAgeModifier()` for age-related effects and reputation adjustments. - Simplified and optimized existing logic for skill and reputation calculations. - Introduced `isClanCampaign()` to determine clan-based campaign properties. - Fixed formatting inconsistencies in Resupply class documentation.
…putation(boolean, boolean, LocalDate, int)` instead of the outdated one.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6575 +/- ##
============================================
+ Coverage 11.41% 11.42% +0.01%
+ Complexity 6475 6468 -7
============================================
Files 1093 1089 -4
Lines 140531 140272 -259
Branches 21792 21761 -31
============================================
- Hits 16037 16033 -4
+ Misses 122855 122600 -255
Partials 1639 1639 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ty, removing TODO placeholder.
rjhancock
approved these changes
Apr 11, 2025
# Conflicts: # MekHQ/src/mekhq/campaign/personnel/Person.java
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
Implementation of Missing Official Rule
Used with the RFE tag for the implementation of missing official rule
Refactoring
Severity: Low
Issues described as low severity as per the new issue form
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requirements
Requires #6607
Dev Notes
This PR expands our aging implementation to inflict Glass Jaw & Slow Learner on characters whenever they hit certain milestones. As per RAW this SPA gain is inflicted every valid milestone. So while the character can mitigate it with repeated purchases of the Toughness and Quick Learner SPAs, but that gets expensive quick.
I also went and implemented Reputation penalties for non-blood named characters in Clan Campaigns once they hit specific Milestones. This required refactoring how Reputation is fetched, which also exposed a couple of minor bugs which I cleaned up as I went.