protected double getArmorValue(int loc, boolean rear) { double result = entity.getArmor(loc, rear); double percent = result / entity.getOArmor(loc, rear); if (percent < .25) { result *= .5; } else if (percent < .60) { result *= .8;
protected int getArmorValue(int loc, boolean rear) { int result = entity.getArmor(loc, rear);    if (entity instanceof Infantry & !(entity instanceof BattleArmor)){ result = ((Infantry) entity).getShootingStrength();
    protected double getArmorValue(int loc, boolean rear) {        double result = entity.getArmor(loc, rear);        double percent = result / entity.getOArmor(loc, rear);        if (percent < .25) {            result *= .5;        } else if (percent < .60) {            result *= .8;        }        return result;    }