Skip to content

Commit

Permalink
WIP: stub out highest threshold override for LAMs
Browse files Browse the repository at this point in the history
  • Loading branch information
Algebro7 committed Aug 6, 2024
1 parent 8462622 commit d745435
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions megamek/src/megamek/common/Aero.java
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
6 changes: 6 additions & 0 deletions megamek/src/megamek/common/LandAirMech.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d745435

Please sign in to comment.