@Override public String[] getLocationNames() { if (!isInitialized || isClan()) { return CLAN_LOCATION_NAMES; } return IS_LOCATION_NAMES; }
public double getWeightChassis() { if (ba.isClan() && !((ba.getWeightClass() > EntityWeightClass.WEIGHT_ULTRA_LIGHT) && (ba.isClanExoWithoutHarjel()))) { return CHASSIS_WEIGHT_CLAN[ba.getWeightClass()]; } else { return CHASSIS_WEIGHT_IS[ba.getWeightClass()]; } }
@Override public String[] getLocationAbbrs() { if (!isInitialized || isClan()) { return CLAN_LOCATION_ABBRS; } return IS_LOCATION_ABBRS; }
/** * Battle Armor units have as many critical slots as they need to hold their * equipment. */ @Override protected int[] getNoOfSlots() { if(!isInitialized) { return CLAN_NUM_OF_SLOTS; } return Arrays.copyOf(isClan() ? CLAN_NUM_OF_SLOTS : IS_NUM_OF_SLOTS, troopers + 1); }
/** * Returns the number of Troopers in the BattleArmor squad, since locations * for BattleArmor correspond to the different suits instead of the actual * mount locations for equipment. */ @Override public int locations() { int retVal = Math.round(getTroopers()); if (retVal == 0) { // Return one more than the maximum number of men in the unit. if (!isInitialized) { retVal = 6 + 1; } else if (isClan()) { retVal = 5 + 1; } else { retVal = 4 + 1; } } else { retVal++; } return retVal; }
if (!isClan()) {
public BattleArmorSuit(BattleArmor ba, int loc, Campaign c) { super((int)ba.getWeight(), c); this.trooper = loc; this.quad = ba.getChassisType() == BattleArmor.CHASSIS_TYPE_QUAD; this.weightClass= ba.getWeightClass(); this.groundMP = ba.getOriginalWalkMP(); this.jumpMP = ba.getOriginalJumpMP(); this.clan = ba.isClan(); this.chassis = ba.getChassis(); this.model = ba.getModel(); this.jumpType = ba.getMovementMode(); this.name = chassis + " " + model + " Suit"; initializeExtraCostsAndTons(); }
weight += wt.getTonnage(getEntity()) * 0.75; } else if (m.isSquadSupportWeapon()){ if (ba.isClan()){ weight += wt.getTonnage(getEntity()) * 0.4; } else {
modifier = 0.75f; } else if (m.isSquadSupportWeapon()) { if (ba.isClan()){ modifier = 0.4; } else {
if (isClan()) { cost *= 1.1; cost += 200000;