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

Updated Aging Effects to Include Clan Reputation Modifiers & Glass Jaw Gain #6575

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

Dev Notes

This PR expands our aging implementation to inflict Glass Jaw 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 SPA, 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.

- 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.
@IllianiCBT IllianiCBT added Bug Refactoring Severity: Low Issues described as low severity as per the new issue form Implementation of Missing Official Rule Used with the RFE tag for the implementation of missing official rule labels Apr 7, 2025
@IllianiCBT IllianiCBT self-assigned this Apr 7, 2025
…putation(boolean, boolean, LocalDate, int)` instead of the outdated one.
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.58%. Comparing base (e0ebe3a) to head (9b3d8b0).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##             master    #6575    +/-   ##
==========================================
  Coverage     11.57%   11.58%            
  Complexity     6401     6401            
==========================================
  Files          1085     1085            
  Lines        139499   139656   +157     
  Branches      21514    21537    +23     
==========================================
+ Hits          16149    16174    +25     
- Misses       121776   121909   +133     
+ Partials       1574     1573     -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant