-
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
Code cleanup for #4000 #4054
Code cleanup for #4000 #4054
Conversation
… casts, and instanceof checks in favor of single if block
Codecov ReportBase: 23.03% // Head: 23.00% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4054 +/- ##
============================================
- Coverage 23.03% 23.00% -0.03%
Complexity 4813 4813
============================================
Files 2263 2264 +1
Lines 248731 249501 +770
Branches 46244 46321 +77
============================================
+ Hits 57283 57398 +115
- Misses 189989 190644 +655
Partials 1459 1459
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.
One spacing issue, otherwise this looks good
@@ -404,36 +404,31 @@ else if ((entity.heat >= 14) && !entity.isShutDown()) { | |||
|
|||
public static void adjustHeatExtremeTemp(Game game, Entity entity, Vector<Report> vPhaseReport) { | |||
Report r; | |||
int tempDiff = game.getPlanetaryConditions().getTemperatureDifference(50, -30); | |||
int tempDiff = game.getPlanetaryConditions().getTemperatureDifference(50, -30); | |||
boolean heatArmor =false; |
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.
boolean heatArmor =false; | |
boolean heatArmor = false; |
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.
Fixed
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)
Code change for PR #4000 Consolidated some code removing several if blocks moving them into a single if statement at the beginning of the function which relocated two class casts and removed multiple if statements for boolean variables. Not sure if it will have a positive impact on performance but it does clean up the code some.