From d7454357305cc950b3c3c432039c0e5381b8b064 Mon Sep 17 00:00:00 2001 From: algebro Date: Tue, 6 Aug 2024 11:24:45 -0400 Subject: [PATCH] WIP: stub out highest threshold override for LAMs --- megamek/src/megamek/common/Aero.java | 1 + megamek/src/megamek/common/LandAirMech.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/megamek/src/megamek/common/Aero.java b/megamek/src/megamek/common/Aero.java index c50cd4e78e4..e1525ad97d5 100644 --- a/megamek/src/megamek/common/Aero.java +++ b/megamek/src/megamek/common/Aero.java @@ -1609,6 +1609,7 @@ public int getThresh(int loc) { return 0; } + @Override public int getHighestThresh() { int max = damThresh[0]; for (int i = 1; i < damThresh.length; i++) { diff --git a/megamek/src/megamek/common/LandAirMech.java b/megamek/src/megamek/common/LandAirMech.java index 6545c20e53d..dcdc786ad0e 100644 --- a/megamek/src/megamek/common/LandAirMech.java +++ b/megamek/src/megamek/common/LandAirMech.java @@ -1692,6 +1692,12 @@ public int getThresh(int loc) { return getInternal(loc); } + @Override + public int getHighestThresh() { + // TODO: implement for StratOps Atmospheric Control Roll Errata + return 0; + } + @Override public boolean wasCritThresh() { return critThresh;