public double getBVMultiplier() { int sideCrits = getSideTorsoCriticalSlots().length; if (sideCrits >= 6) { return 0.25; // IS XXL } else if (sideCrits >= 3) { return 0.5; // IS XL, clan XXL, superheavy IS XXL, superheavy IS large XXL } else if (sideCrits >= 2) { return 0.75; // IS light, clan XL, superheavy clan XXL, superheavy clan large XXL } else if (sideCrits >= 1) { return 0.825; // superheavy IS Light, superheavy clan XL } else { return 1; // standard, compact, ice, fuel cell, fission } }
private boolean checkSystemCriticals(StringBuffer buff) { // Engine criticals boolean engineCorrect = true; int requiredSideCrits = engine.getSideTorsoCriticalSlots().length; if ((requiredSideCrits != mech.getNumberOfCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_LT)) || (requiredSideCrits != mech.getNumberOfCriticals( CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_RT))) { engineCorrect = false; } int requiredCTCrits = engine.getCenterTorsoCriticalSlots(mech.getGyroType()).length; if (requiredCTCrits != mech .getNumberOfCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_CT)) { engineCorrect = false; } if (!engineCorrect) { buff.append("Engine: Incorrect number of criticals allocated.\n"); } if (!engineCorrect) { return false; } if (getMech().getGyroType() == Mech.GYRO_NONE && getMech().getCockpitType() != Mech.COCKPIT_INTERFACE) { buff.append("Missing Gyro!.\n"); return false; } return true; }
.getSideTorsoCriticalSlots().length > 2))) { continue; if (hasEngine() && (getEngine().getSideTorsoCriticalSlots().length <= 2)) { && (loc != LOC_LLEG) && (loc != LOC_HEAD)) && !(((loc == LOC_RT) || (loc == LOC_LT)) && hasEngine() && (getEngine() .getSideTorsoCriticalSlots().length > 2))) { continue; if(hasEngine() && (getEngine().getSideTorsoCriticalSlots().length <= 2)) {
updateRefitClass(CLASS_F); if(((MissingEnginePart)nPart).getEngine().getSideTorsoCriticalSlots().length > 0) { locationHasNewStuff[Mech.LOC_LT] = true; locationHasNewStuff[Mech.LOC_RT] = true;
int sideSlots[] = getEngine().getSideTorsoCriticalSlots(); if ((getEmptyCriticals(LOC_LT) < sideSlots.length) || (getEmptyCriticals(LOC_RT) < sideSlots.length) || !success) {