Skip to content

Commit

Permalink
Merge pull request #5214 from IllianiCBT/maintenance_locationModifiers
Browse files Browse the repository at this point in the history
Corrected Unit Site Comparison Logic
  • Loading branch information
HammerGS authored Nov 23, 2024
2 parents 13a1305 + aee5977 commit 7dd4097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MekHQ/src/mekhq/campaign/Campaign.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
import static mekhq.campaign.personnel.backgrounds.BackgroundsController.randomMercenaryCompanyNameGenerator;
import static mekhq.campaign.personnel.education.EducationController.getAcademy;
import static mekhq.campaign.personnel.turnoverAndRetention.RetirementDefectionTracker.Payout.isBreakingContract;
import static mekhq.campaign.unit.Unit.SITE_FACILITY_MAINTENANCE;
import static mekhq.campaign.unit.Unit.SITE_FACILITY_BASIC;
import static mekhq.utilities.ReportingUtilities.CLOSING_SPAN_TAG;

/**
Expand Down Expand Up @@ -6312,7 +6312,7 @@ public TargetRoll getTargetForMaintenance(IPartWork partWork, Person tech) {
target.addModifier(getFaction().getEraMod(getGameYear()), "era");
}

if (partWork.getUnit().getSite() < SITE_FACILITY_MAINTENANCE) {
if (partWork.getUnit().getSite() < SITE_FACILITY_BASIC) {
if (getLocation().isOnPlanet() && campaignOptions.isUsePlanetaryModifiers()) {
Planet planet = getLocation().getPlanet();
Atmosphere atmosphere = planet.getAtmosphere(getLocalDate());
Expand Down

0 comments on commit 7dd4097

Please sign in to comment.