Skip to content

Commit

Permalink
Merge pull request #4070 from SJuliez/AS_corrections_4
Browse files Browse the repository at this point in the history
AS conversion: Allow 0" movement for CI
  • Loading branch information
SJuliez authored Dec 26, 2022
2 parents 838fecc + 7d6fed7 commit 8206fed
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,12 @@ private static Map<String, Integer> convertMovementForInfantry(ASConverter.Conve
jumpingMP = ((BattleArmor)entity).getJumpMP(true, true, true);
}

// ensure a minimum base movement of 2"
walkingMP = Math.max(walkingMP, 1);
report.addLine("Walking MP:", Integer.toString(walkingMP));
report.addLine("Jumping MP:", Integer.toString(jumpingMP));
String movementCode = getMovementCode(conversionData);
element.setPrimaryMovementMode(movementCode);

if (walkingMP > jumpingMP) {
if ((walkingMP > jumpingMP) || (jumpingMP == 0)) {
result.put(movementCode, walkingMP * 2);
report.addLine("Walking MP > Jumping MP", walkingMP + " x 2", walkingMP * 2 + "\"" + movementCode);
} else {
Expand Down

0 comments on commit 8206fed

Please sign in to comment.