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

Fix #4828, #6476: Updated Maintenance Handling and Tech Assignment Display #6587

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Apr 7, 2025

  • Refactored doMaintenance logic so that maintenance time is only deducted on the day maintenance takes place - to match current errata.
  • Added failure reporting when a tech lacks sufficient minutes for maintenance, with a localized message update.
  • Revised Person.getDailyAvailableTechTime to exclude maintenance time.
  • Updated AssignUnitToTechMenu to display available minutes for tech assignment using recalculated logic.

Fix #4828
Fix #6476

Dev Notes

This PR does two things: one, it changes maintenance time deductions to match current errata which states that maintenance time is only deducted on the day in which the maintenance takes place. This will be a game changer, I suspect.

Second, when assigning a character to a unit you now see the amount of minutes they have available (minus time reserved for maintenance, but excluding time spent on that specific day); rather than just the amount of time reserved for maintenance. I'm not sure if this is the best implementation, but we had an issue report requesting it, so I went ahead and made the change. We can switch it out easily, should user feedback warrant it.

- Refactored `doMaintenance` logic so that maintenance time is only deducted on the day maintenance takes place - to match current errata.
- Added failure reporting when a tech lacks sufficient minutes for maintenance, with a localized message update.
- Revised `Person.getDailyAvailableTechTime` to exclude maintenance time.
- Updated `AssignUnitToTechMenu` to display accurate available minutes for tech assignment using recalculated logic.
@IllianiCBT IllianiCBT added Errata This covers officially produced CGL errata that the programs need to implement. GUI labels Apr 7, 2025
@IllianiCBT IllianiCBT self-assigned this Apr 7, 2025
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.43%. Comparing base (f44952c) to head (b66ee62).
Report is 6 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6587      +/-   ##
============================================
- Coverage     11.43%   11.43%   -0.01%     
  Complexity     6451     6451              
============================================
  Files          1087     1087              
  Lines        139447   139451       +4     
  Branches      21560    21563       +3     
============================================
  Hits          15944    15944              
- Misses       121908   121913       +5     
+ Partials       1595     1594       -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
Errata This covers officially produced CGL errata that the programs need to implement. GUI
Projects
None yet
1 participant