Fix 6434 and 3890: pilot rolls reported before all attacks #6439
+172
−161
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.
This set of fixes cleans up some of what appear to mistakes in how certain critical effects and PSR results are reported.
The issue is that a number of functions within TWGameManager.java used to write directly to vPhaseReport (the class member, not the various identically named local Vector instances, thanks for that) or use the
addReport()
function to the same effect, while most of the rest of the code has been updated to pass a per-Phase Vector of reports around, or compose one from the results of calling all the various handling functions.This fix should clear up two specific instances of Pilot Skill checks appearing in the phase report log prior to the attacks that actually caused them.
NOTE: there are likely many more such functions within TWGameManager.java that need to be examined, and possibly updated:
Unfortunately, there are some 700+ such locations to check within the class.
Prior behaviour:
Updated behaviour:
Testing:
Close #3890 #6434