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

Refactored Field Kitchen Personnel Count Logic #5140

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Oct 28, 2024

Field Kitchens will no longer count Prisoners against their limit, unless the Prisoner has a role. Furthermore, support personnel are no longer counted in the campaign summary screen (this was a visual bug only).

Closes #5139

Field Kitchens will no longer count Prisoners against their limit, unless the Prisoner has a role. Furthermore, support personnel are no longer counted in the campaign summary screen (this was a visual bug only).
@IllianiCBT IllianiCBT added Bug Personnel Personnel-related Issues labels Oct 28, 2024
@IllianiCBT IllianiCBT self-assigned this Oct 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.53%. Comparing base (fb6c52a) to head (019ce1d).
Report is 32 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5140   +/-   ##
=========================================
  Coverage     10.53%   10.53%           
- Complexity     6041     6045    +4     
=========================================
  Files           956      956           
  Lines        134253   134275   +22     
  Branches      19501    19507    +6     
=========================================
+ Hits          14142    14149    +7     
- Misses       118760   118773   +13     
- Partials       1351     1353    +2     

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

Updated the logic for filtering personnel to correctly identify those who should be included based on their prisoner status and role. This change ensures that personnel count calculations are accurate when using the field kitchen feature.
@HammerGS HammerGS merged commit f570833 into MegaMek:master Oct 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Personnel Personnel-related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Field Kitchens counting all personnel even when "Ignore Noncombatants" is flagged .50.0
3 participants