Skip to content

Commit

Permalink
FixedWingSupport: automatically set SI when walk MPs are set
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Dec 31, 2023
1 parent 26860a5 commit 6bb0b16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions megamek/src/megamek/common/FixedWingSupport.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,10 @@ public long getEntityType() {
public boolean isAerospaceSV() {
return true;
}

@Override
public void setOriginalWalkMP(int walkMP) {
super.setOriginalWalkMP(walkMP);
autoSetSI();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ public Entity getEntity() throws EntityLoadingException {

a.autoSetInternal();
a.recalculateTechAdvancement();
a.autoSetSI();
// This is not working right for arrays for some reason
a.autoSetThresh();

Expand Down

0 comments on commit 6bb0b16

Please sign in to comment.