From aee5977dbd146641bf8ec6acaf8ee5d0be960abf Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Mon, 18 Nov 2024 12:25:14 -0600 Subject: [PATCH] Corrected Unit Site Comparison Logic Replaced `SITE_FACILITY_MAINTENANCE` with `SITE_FACILITY_BASIC` in the comparison logic for unit site determination. This ensures planetary modifiers are only applied in appropriate circumstances. --- MekHQ/src/mekhq/campaign/Campaign.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MekHQ/src/mekhq/campaign/Campaign.java b/MekHQ/src/mekhq/campaign/Campaign.java index 2d7aa84b72..3ab6edf7a4 100644 --- a/MekHQ/src/mekhq/campaign/Campaign.java +++ b/MekHQ/src/mekhq/campaign/Campaign.java @@ -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; /** @@ -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());