Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbraginskiy committed Feb 21, 2025
1 parent 9fc800c commit a0fc096
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion megamek/src/megamek/common/Mek.java
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ public int getJumpMP(MPCalculationSetting mpCalculationSetting) {

public boolean hasChainDrape() {
for (MiscMounted mount : getMisc()) {
if (!mount.isDestroyed() && mount.getType().hasFlag(MiscType.F_CHAIN_DRAPE)) {
if (mount.getType().hasFlag(MiscType.F_CHAIN_DRAPE) && !mount.isDestroyed()) {
return true;
}
}
Expand Down
4 changes: 2 additions & 2 deletions megamek/src/megamek/common/verifier/TestMek.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,11 @@ public boolean checkMiscSpreadAllocation(Entity entity, Mounted<?> mounted,
}
if (mt.hasFlag(MiscType.F_CHAIN_DRAPE)) {
if (countCriticalSlotsFromEquipInLocation(entity, mounted, Mek.LOC_LT) != 3) {
buff.append("incorrect number of chain draop crits in left torso\n");
buff.append("incorrect number of chain drape crits in left torso\n");
return false;
}
if (countCriticalSlotsFromEquipInLocation(entity, mounted, Mek.LOC_RT) != 3) {
buff.append("incorrect number of chain draop crits in right torso\n");
buff.append("incorrect number of chain drape crits in right torso\n");
return false;
}
}
Expand Down

0 comments on commit a0fc096

Please sign in to comment.