sb.append(newLine); if (hasPatchworkArmor()) { sb.append("Armor:").append( EquipmentType if (hasPatchworkArmor()) { sb.append( EquipmentType.getArmorTypeName(getArmorType(element),
private void addArmorAndStructure() { setModelData("structureValues", addArmorStructureEntries(mech, (en, loc) -> en.getOInternal(loc), MECH_ARMOR_LOCS)); setModelData("armorValues", addArmorStructureEntries(mech, (en, loc) -> en.getOArmor(loc), MECH_ARMOR_LOCS)); setModelData("rearArmorValues", addArmorStructureEntries(mech, (en, loc) -> en.getOArmor(loc, true), MECH_ARMOR_LOCS_REAR)); if (mech.hasPatchworkArmor()) { setModelData("patchworkByLoc", addPatchworkATs(mech, MECH_ARMOR_LOCS)); } }
private static Armor[] getArmor(Mech mech) { Armor[] armor; if (!mech.hasPatchworkArmor()) { armor = new Armor[1]; int type = mech.getArmorType(1); int flag = 0; if (mech.isClanArmor(1)) { flag |= Armor.CLAN_ARMOR; } armor[0] = new Armor(type, flag); return armor; } else { armor = new Armor[mech.locations()]; for (int i = 0; i < mech.locations(); i++) { int type = mech.getArmorType(i); int flag = 0; if (mech.isClanArmor(i)) { flag |= Armor.CLAN_ARMOR; } armor[i] = new Armor(type, flag); } } return armor; }
if (!m.hasPatchworkArmor() && m.hasBARArmor(1)) { content.addArea(labels[19]); content.addArea(vLabels[20]);
if (!m.hasPatchworkArmor() && m.hasBARArmor(1)) { content.addArea(labels[21]); content.addArea(vLabels[22]);
if (hasPatchworkArmor()) { for (int loc = 0; loc < locations(); loc++) { costs[i++] += getArmorWeight(loc)