public String getSystemName(int index) { if (index == SYSTEM_GYRO) { return Mech.getGyroDisplayString(gyroType); } if (index == SYSTEM_COCKPIT) { if (isIndustrial() && (cockpitType == Mech.COCKPIT_STANDARD)) { return "Industrial Cockpit (adv. FCS)"; } return Mech.getCockpitDisplayString(cockpitType); } return systemNames[index]; }
static ASUnitType getUnitType(Entity en) { if (en instanceof Mech) { return ((Mech)en).isIndustrial()? IM : BM; } else if (en instanceof Protomech) { return PM;
/** * @return Returns the autoEject. */ public boolean isAutoEject() { boolean hasEjectSeat = true; if (getCockpitType() == COCKPIT_TORSO_MOUNTED) { hasEjectSeat = false; } if (isIndustrial()) { // industrials can only eject when they have an ejection seat for (Mounted misc : miscList) { if (misc.getType().hasFlag(MiscType.F_EJECTION_SEAT)) { hasEjectSeat = true; } } } return autoEject && hasEjectSeat; }
public TechAdvancement getCockpitTechAdvancement() { if (isIndustrial() && (getCockpitType() == COCKPIT_STANDARD)) { return getIndustrialAdvFireConTA(); } return getCockpitTechAdvancement(getCockpitType()); }
@Override public TechAdvancement getConstructionTechAdvancement() { return getTechAdvancement(getEntityType(), isPrimitive(), isIndustrial(), getWeightClass()); }
@Override public boolean hasCommandConsoleBonus() { return getCockpitType() == COCKPIT_COMMAND_CONSOLE && getCrew().hasActiveCommandConsole() && getWeightClass() >= EntityWeightClass.WEIGHT_HEAVY && (!isIndustrial() || hasWorkingMisc(MiscType.F_ADVANCED_FIRECONTROL)); }
if (movingUnit instanceof Mech && ((Mech) movingUnit).isIndustrial()) { logMsg.append("Industrial mechs drown too (1000)."); return 1000;
} else if (m.getType().hasFlag(MiscType.F_VOIDSIG)) { specialAbilities.put(BattleForceSPA.MAS, null); } else if (isIndustrial() && m.getType().hasFlag(MiscType.F_ENVIRONMENTAL_SEALING) && getEngine().getEngineType() != Engine.COMBUSTION_ENGINE) { specialAbilities.put(BattleForceSPA.SOA, null); specialAbilities.merge(BattleForceSPA.VR, 1, Integer::sum); if (isIndustrial()) { if (getCockpitType() == Mech.COCKPIT_STANDARD) { specialAbilities.put(BattleForceSPA.AFC, null);
if (((Mech) entityTarget).isIndustrial()) { if (taserRoll >= 11) { entityTarget.taserShutdown(3, true);
private String formatChassisDesc() { String chassisDesc = EquipmentType.getStructureTypeName(mech.getStructureType()); if (mech.isIndustrial()) { chassisDesc += Messages.getString("TROView.chassisIndustrial"); } if (mech.isSuperHeavy()) { chassisDesc += Messages.getString("TROView.chassisSuperheavy"); } if (mech.hasETypeFlag(Entity.ETYPE_QUADVEE)) { chassisDesc += Messages.getString("TROView.chassisQuadVee"); } else if (mech.hasETypeFlag(Entity.ETYPE_QUAD_MECH)) { chassisDesc += Messages.getString("TROView.chassisQuad"); } else if (mech.hasETypeFlag(Entity.ETYPE_TRIPOD_MECH)) { chassisDesc += Messages.getString("TROView.chassisTripod"); } else if (mech.hasETypeFlag(Entity.ETYPE_LAND_AIR_MECH)) { chassisDesc += Messages.getString("TROView.chassisLAM"); } else { chassisDesc += Messages.getString("TROView.chassisBiped"); } return chassisDesc; }
if(entity instanceof Mech && ((Mech)entity).isIndustrial()) { tonnage = 400;
if (((Mech) entityTarget).isIndustrial()) { if (taserRoll >= 8) { r = new Report(3705);
@Override protected void addSystemTechAdvancement(CompositeTechLevel ctl) { super.addSystemTechAdvancement(ctl); // battlemechs with non-fusion engines are experimental if (hasEngine() && !isIndustrial() && !getEngine().isFusion()) { ctl.addComponent(new TechAdvancement().setStaticTechLevel(SimpleTechLevel.EXPERIMENTAL)); } if (getGyroTechAdvancement() != null) { ctl.addComponent(getGyroTechAdvancement()); } if (getCockpitTechAdvancement() != null) { ctl.addComponent(getCockpitTechAdvancement()); } if (hasFullHeadEject()) { ctl.addComponent(getFullHeadEjectAdvancement()); } //FIXME: Clan interface cockpit has higher tech rating //if (getCockpitType() == COCKPIT_INTERFACE && isClan()) { // techAdvancement.setTechRating(Math.max(techAdvancement.getTechRating(), RATING_F)); //} }
int interferenceTarget = 13; if (entityTarget instanceof Mech){ if (((Mech) entityTarget).isIndustrial()){ interferenceTarget = 6; shutdownTarget = 8;
@Override public double getWeightPowerAmp() { if (mech.isIndustrial() && (!mech.hasEngine() || (mech.getEngine().getEngineType() == Engine.COMBUSTION_ENGINE) || (mech.getEngine().getEngineType() == Engine.FUEL_CELL))) { double powerAmpWeight = 0; for (Mounted m : mech.getWeaponList()) { WeaponType wt = (WeaponType) m.getType(); if (wt instanceof EnergyWeapon) { powerAmpWeight += wt.getTonnage(mech); } if ((m.getLinkedBy() != null) && (m.getLinkedBy().getType() instanceof MiscType) && m.getLinkedBy().getType().hasFlag(MiscType.F_PPC_CAPACITOR)) { powerAmpWeight += ((MiscType) m.getLinkedBy().getType()) .getTonnage(mech); } } return TestEntity.ceil(powerAmpWeight / 10f, getWeightCeilingPowerAmp()); } return 0; }
@Override public int getBattleForceTotalHeatGeneration(boolean allowRear) { int totalHeat = 0; // finish the max heat calculations if (this.getJumpMP() > 0) { totalHeat += getJumpHeat(getJumpMP()); } else if (!isIndustrial() && hasEngine()) { totalHeat += getEngine().getRunHeat(this); } for (Mounted mount : getWeaponList()) { WeaponType weapon = (WeaponType) mount.getType(); if (weapon.hasFlag(WeaponType.F_ONESHOT) || (allowRear && !mount.isRearMounted()) || (!allowRear && mount.isRearMounted())) { continue; } if (weapon.getAmmoType() == AmmoType.T_AC_ROTARY) { totalHeat += weapon.getHeat() * 6; } else if (weapon.getAmmoType() == AmmoType.T_AC_ULTRA || weapon.getAmmoType() == AmmoType.T_AC_ULTRA_THB) { totalHeat += weapon.getHeat() * 2; } else { totalHeat += weapon.getHeat(); } } if (hasWorkingMisc(MiscType.F_STEALTH, -1)) { totalHeat += 10; } return totalHeat; }
if (this instanceof TripodMech) { setCockpitType(COCKPIT_SUPERHEAVY_TRIPOD); } else if (isIndustrial()) { setCockpitType(COCKPIT_SUPERHEAVY_INDUSTRIAL); } else {
if (isIndustrial()) { weightMultiplier = 1 + (weight / 400f);
if ((defender instanceof Mech) && ((Mech) defender).isIndustrial()) { data.addModifier(-1, "targeting industrial mech");
if(!((Mech) entity).isIndustrial()) { target.addModifier(0, "BattleMech"); } else {