@Override protected double getArmActuatorCost() { double cost = 0; int numOfUpperArmActuators = 0; int numOfLowerArmActuators = 0; int numOfHands = 0; if (hasSystem(Mech.ACTUATOR_HAND, Mech.LOC_LARM)) { numOfHands++; } if (hasSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_LARM)) { numOfLowerArmActuators++; } if (hasSystem(Mech.ACTUATOR_UPPER_ARM, Mech.LOC_LARM)) { numOfUpperArmActuators++; } if (hasSystem(Mech.ACTUATOR_HAND, Mech.LOC_RARM)) { numOfHands++; } if (hasSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_RARM)) { numOfLowerArmActuators++; } if (hasSystem(Mech.ACTUATOR_UPPER_ARM, Mech.LOC_RARM)) { numOfUpperArmActuators++; } cost += numOfUpperArmActuators * weight * 100; cost += numOfLowerArmActuators * weight * 50; cost += numOfHands * weight * 80; return cost; }
/** * Returns true if the entity can flip its arms */ @Override public boolean canFlipArms() { boolean canFlip = true; if (hasSystem(Mech.ACTUATOR_HAND, Mech.LOC_LARM)) { canFlip = false; } else if (hasSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_LARM)) { canFlip = false; } else if (hasSystem(Mech.ACTUATOR_HAND, Mech.LOC_RARM)) { canFlip = false; } else if (hasSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_RARM)) { canFlip = false; } if (hasQuirk(OptionsConstants.QUIRK_POS_HYPER_ACTUATOR)) { canFlip = true; } if (isProne()) { canFlip = false; } return canFlip; }
if(null == rightHand && m.hasSystem(Mech.ACTUATOR_HAND, Mech.LOC_RARM)) { MekActuator part = missingHand1; if(null == part || part.getLocation() != Entity.LOC_NONE) { if(null == leftHand && m.hasSystem(Mech.ACTUATOR_HAND, Mech.LOC_LARM)) { MekActuator part = missingHand1; if(null == part || part.getLocation() != Entity.LOC_NONE) { if(null == rightLowerArm && m.hasSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_RARM)) { MekActuator part = missingArm1; if(null == part || part.getLocation() != Entity.LOC_NONE) { if(null == leftLowerArm && m.hasSystem(Mech.ACTUATOR_LOWER_ARM, Mech.LOC_LARM)) { MekActuator part = missingArm1; if(null == part || part.getLocation() != Entity.LOC_NONE) {