Fix #4828, #6476: Updated Maintenance Handling and Tech Assignment Display #6587
+113
−125
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.
doMaintenance
logic so that maintenance time is only deducted on the day maintenance takes place - to match current errata.Person.getDailyAvailableTechTime
to exclude maintenance time.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.