Skip to content

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAragua committed Aug 13, 2021
1 parent 3dcdb3c commit a4e9daf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MekHQ/data/scenariomodifiers/HostileBVBudgetIncrease.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<AtBScenarioModifier>
<additionalBriefingText>Local coordination has allowed the opposition to deploy a larger force to respond to your presence.</additionalBriefingText>
<benefitsPlayer>fakse</benefitsPlayer>
<benefitsPlayer>false</benefitsPlayer>
<eventTiming>PreForceGeneration</eventTiming>
<eventRecipient>Opposing</eventRecipient>
<bvBudgetAdditiveMultiplier>-1</bvBudgetAdditiveMultiplier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1943,8 +1943,8 @@ private static void setDeploymentTurns(AtBDynamicScenario scenario) {

/**
* Sets up deployment turns for all bot units within the specified bot force according to the specified force template's rules.
* @param botForce The bot force to process
* @param deployRound The specific deployment round, or a special constant.
* Also makes use of the given scenarios reinforcement delay modifier.
*
* ARRIVAL_TURN_STAGGERED_BY_LANCE is not implemented.
* ARRIVAL_TURN_STAGGERED is processed just prior to scenario start instead (?)
*/
Expand Down
8 changes: 1 addition & 7 deletions MekHQ/src/mekhq/campaign/stratcon/StratconTrackState.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,7 @@ public void failObjective(StratconCoords coords) {
* Whether or not this track has a facility on it that reveals the track.
*/
public boolean hasActiveTrackReveal() {
for (StratconFacility facility : getFacilities().values()) {
if (facility.getRevealTrack()) {
return true;
}
}

return false;
return getFacilities().values().stream().anyMatch(facility -> facility.getRevealTrack());
}

/**
Expand Down

0 comments on commit a4e9daf

Please sign in to comment.