-
Notifications
You must be signed in to change notification settings - Fork 200
Fix: Stopped Alt Advanced Medical Injuries From Counting as More Than 1 'Hit' Per #8254
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8254 +/- ##
=========================================
Coverage 11.72% 11.73%
- Complexity 7532 7535 +3
=========================================
Files 1271 1271
Lines 162724 162753 +29
Branches 24515 24521 +6
=========================================
+ Hits 19082 19097 +15
- Misses 141644 141657 +13
- Partials 1998 1999 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes the Alt Advanced Medical system to ensure that all injuries (except prosthetics and flaws) count as exactly 1 "Hit" for Total Warfare purposes. This simplifies the injury system by removing the ambiguity of variable severity values, making it easier to predict how many hits a character has based on their injury count.
- Added new FLAW injury subtype to exclude flaw-based injuries from hit counts
- Updated logger naming from lowercase to uppercase to follow codebase conventions
- Modified getHits() logic to return consistent hit values for Alt Advanced Medical injuries
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| InjurySubType.java | Added FLAW enum value and isFlaw() method to support exclusion of flaw-based injuries from hit calculations |
| Person.java | Changed DISCONTINUATION_SYNDROME severity from 0 to 1 and refactored to use getTotalInjurySeverity() for better code maintainability |
| Injury.java | Updated logger naming to uppercase LOGGER convention and implemented Alt Advanced Medical hit normalization logic in getHits() to return 1 for all non-prosthetic/non-flaw injuries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Under vanilla AM an individual Injury is worth
nTW Hits, wherenis the severity of the injury. This was a semi-random value based on the injury type and some math. This made it hard to know truly how many Hits a character would have, going into a scenario if they were pre-injured. With AAM I wanted to remove a lot of this ambiguity. Now all injuries - that are not records of prosthetic of implant surgery - are worth 1 Hit. If a character has 3 Injuries, they have 3 Hits. Simple.