/** * Used to determine if this vehicle can be the engine/tractor * for a bunch of trailers * * @return */ @Override public boolean isTractor() { if (hasWorkingMisc(MiscType.F_HITCH) && !isTrailer()) { return true; } return false; }
@Override public boolean hasCommandConsoleBonus() { if (!hasWorkingMisc(MiscType.F_COMMAND_CONSOLE) || isCommanderHit() || isUsingConsoleCommander()) { return false; } if (isSupportVehicle()) { return getWeightClass() >= EntityWeightClass.WEIGHT_LARGE_SUPPORT && hasWorkingMisc(MiscType.F_ADVANCED_FIRECONTROL); } else { return getWeightClass() >= EntityWeightClass.WEIGHT_HEAVY; } }
public void addTrailerHitchEquipment() { if (hasWorkingMisc(MiscType.F_HITCH)) { return; if (hasWorkingMisc(MiscType.F_TRACTOR_MODIFICATION)) { hitchNeeded = true;
if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) { blueShield = true; if (hasWorkingMisc(MiscType.F_BLUE_SHIELD)) { armorMultiplier += 0.2; && (hasWorkingMisc(MiscType.F_LIMITED_AMPHIBIOUS) || hasWorkingMisc(MiscType.F_DUNE_BUGGY) || hasWorkingMisc(MiscType.F_FLOTATION_HULL) || hasWorkingMisc(MiscType.F_VACUUM_PROTECTION) || hasWorkingMisc(MiscType.F_ENVIRONMENTAL_SEALING) || hasWorkingMisc(MiscType.F_ARMORED_MOTIVE_SYSTEM))) { typeModifier += .1; } else if (hasWorkingMisc(MiscType.F_FULLY_AMPHIBIOUS) && !(this instanceof SupportTank)) { typeModifier += .2; if (hasWorkingMisc(MiscType.F_ADVANCED_FIRECONTROL)) { targetingSystemBVMod = 1.0; } else if (hasWorkingMisc(MiscType.F_BASIC_FIRECONTROL)) { targetingSystemBVMod = .9; } else { if (hasWorkingMisc(MiscType.F_DRONE_OPERATING_SYSTEM)) { dBV *= 0.8; bvText.append(" x 0.8 Drone OS"); if (hasWorkingMisc(MiscType.F_DRONE_OPERATING_SYSTEM)) { finalBV *= 0.95; finalBV = Math.round(finalBV);
j--; if (hasWorkingMisc(MiscType.F_DUNE_BUGGY) && (game != null)) { j--;
correct = false; if (tank.hasWorkingMisc(MiscType.F_ARMORED_MOTIVE_SYSTEM) && !((tank.getMovementMode() == EntityMovementMode.WHEELED) || (tank.getMovementMode() == EntityMovementMode.TRACKED) || (tank.getMovementMode() == EntityMovementMode.HOVER) || (tank.getMovementMode() == EntityMovementMode.HYDROFOIL) || (tank.getMovementMode() == EntityMovementMode.NAVAL) || (tank.getMovementMode() == EntityMovementMode.SUBMARINE) || (tank.getMovementMode() == EntityMovementMode.WIGE))) { buff.append("Armored Motive system and incompatible movemement mode!\n\n"); correct = false; if (!tank.hasWorkingMisc(MiscType.F_MAST_MOUNT)) { for (Mounted m : tank.getEquipment()) { if (m.getLocation() == VTOL.LOC_ROTOR) {
if (entity instanceof Tank && ((Tank)entity).hasWorkingMisc(MiscType.F_COMMAND_CONSOLE)) { Person p = null; if (null != techOfficer) {
if (hasWorkingMisc(MiscType.F_FLOTATION_HULL) || hasWorkingMisc(MiscType.F_VACUUM_PROTECTION) || hasWorkingMisc(MiscType.F_ENVIRONMENTAL_SEALING)) { cost *= 1.25; costs[i++] = -1.25; if (hasWorkingMisc(MiscType.F_OFF_ROAD)) { cost *= 1.2; costs[i++] = -1.2;
boolean hasFlotationHull = hasWorkingMisc(MiscType.F_FLOTATION_HULL); boolean isAmphibious = hasWorkingMisc(MiscType.F_FULLY_AMPHIBIOUS);