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

Fix SV engine minimum weight #3898

Merged
merged 1 commit into from
Sep 23, 2022
Merged
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
Minimum weight for a support vehicle fission or TL C fusion engine is…
… 5 tons, not 0.5.
neoancient committed Sep 12, 2022
commit 448ffe2a5b6878586a1cf29e4a9d463aca29d494
4 changes: 2 additions & 2 deletions megamek/src/megamek/common/Engine.java
Original file line number Diff line number Diff line change
@@ -337,11 +337,11 @@ && isValidEngine()) {
double weight = entity.getBaseEngineValue() * movementFactor
* engineWeightMult * entity.getWeight();
// Fusion engines have a minimum weight of 0.25t at D+ and 0.5t at C. Fission engines have
// a minimum of 0.5t at all tech ratings.
// a minimum of 5t at all tech ratings.
if ((engineType == NORMAL_ENGINE) && (entity.getEngineTechRating() >= RATING_D)) {
weight = Math.max(weight, 0.25);
} else if ((engineType == NORMAL_ENGINE) || (engineType == FISSION)) {
weight = Math.max(weight, 0.5);
weight = Math.max(weight, 5);
}

// Hovercraft have a minimum engine weight of 20% of the vehicle.