Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixedWingSupport: automatically set SI when walk MPs are set #4990

Merged
merged 1 commit into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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