-
Notifications
You must be signed in to change notification settings - Fork 291
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
Modernizing Team #4106
Modernizing Team #4106
Conversation
Codecov ReportBase: 22.95% // Head: 22.96% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4106 +/- ##
=========================================
Coverage 22.95% 22.96%
- Complexity 4817 4822 +5
=========================================
Files 2282 2276 -6
Lines 250311 250219 -92
Branches 46367 46348 -19
=========================================
+ Hits 57462 57464 +2
+ Misses 191398 191303 -95
- Partials 1451 1452 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Two minor changes requested
@@ -202,7 +202,7 @@ public void updateTable(Game game) { | |||
int hiddenBv = 0; | |||
boolean[] unitCritical = { false, false, false, false, false }; | |||
boolean[] unitWarnings = { false, false, false, false, false }; | |||
for (Player teamMember: team.getPlayersVector()) { | |||
for (Player teamMember: team.players()) { |
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.
for (Player teamMember: team.players()) { | |
for (Player teamMember : team.players()) { | |
megamek/src/megamek/common/Team.java
Outdated
if (ObserverTeam == null) { | ||
cacheObserverStatus(); | ||
/** Adds the given player to this team. */ | ||
public void addPlayer(Player player) { |
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.
nullable annotation
# Conflicts: # megamek/src/megamek/common/Team.java
Done. |
MegaMek + Fix 5476: Update SV armor slots to 2 or 1 for Rating E or F respectively MegaMekLab + Fix #MegaMek#1514: Fix Atrocious table shading render speed MekHQ + PR MegaMek#4106: Use tabs in customize scenario dialog + PR MegaMek#4105: Updated Post-Scenario Logging for Prisoners + PR MegaMek#4104: Fixed Post-Scenario Tracking System's Handling of Multiple Personnel in autoAwards + PR MegaMek#4102: Fixed Award Tier Count Calculations in PersonViewPanel + PR MegaMek#4093: Added Negotiation and Scrounge Skill Settings for Administrator Personnel + PR MegaMek#4054: Added Life Paths Campaign Options Tab, Added Education Module Very Important to read the documentation on this feature (See Docs folder)
This is a refactor of Team which was full of outdated code. Changes in other classes are due to renames or removing Enumerations.
There are two
// TODO: remove from Team
in there. I'll remove this in other PRs that are already part-finished.