Skip to content

Commit

Permalink
Merge remote changes with local updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleet01 committed Dec 28, 2023
2 parents e248415 + 6a44891 commit ac56176
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
22 changes: 22 additions & 0 deletions megamek/src/megamek/common/LandAirMech.java
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,28 @@ public void setIntBombChoices(int[] bc) {
}
}

public void setUsedInternalBombs(int b){
// Do nothing; LAMs don't take internal bomb bay hits like this
}

public void increaseUsedInternalBombs(int b){
// Do nothing
}

public int getUsedInternalBombs() {
// Currently not possible
return 0;
}

@Override
public int[] getExtBombChoices() {
return extBombChoices;
}

@Override
public void setExtBombChoices(int[] bc) {
}

@Override
public void setUsedInternalBombs(int b){
// Do nothing; LAMs don't take internal bomb bay hits like this
Expand Down
13 changes: 13 additions & 0 deletions megamek/src/megamek/common/VTOL.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,19 @@ public int reduceMPByBombLoad(int t) {
return Math.max(0, (t - (int) this.getBombs().stream().filter(m -> (m.getUsableShotsLeft() > 0)).count()));
}

public void setUsedInternalBombs(int b){
// Do nothing
}

public void increaseUsedInternalBombs(int b){
// Do nothing
}

public int getUsedInternalBombs() {
// Currently not possible
return 0;
}

@Override
public void setUsedInternalBombs(int b){
// Do nothing
Expand Down
4 changes: 3 additions & 1 deletion megamek/src/megamek/server/GameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -24890,7 +24890,9 @@ private Vector<Report> applyAeroCritical(Aero aero, int loc, CriticalSlot cs, in
js = (Jumpship) aero;
}

switch (cs.getIndex()) {
// For testing purposes
// switch (cs.getIndex()) {
switch (Aero.CRIT_CARGO) {
case Aero.CRIT_NONE:
// no effect
r = new Report(6005);
Expand Down

0 comments on commit ac56176

Please sign in to comment.