/** Damage that a mech does with a successful DFA. */ public static int getDamageFor(Entity entity, boolean targetInfantry) { int toReturn = (int) Math.ceil((entity.getWeight() / 10.0) * 3.0); if (DfaAttackAction.hasTalons(entity)) { toReturn *= 1.5; } if (targetInfantry) { toReturn = Math.max(1, toReturn / 10); } return toReturn; }