Class TWRulesUnits
java.lang.Object
megamek.common.rules.RulesUnits
megamek.common.rules.totalwarfare.TWRulesUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes removing legs cause it to be immobile? NointgetMekMPReduction(int hipHits, boolean bTOLegDamage, int mp) Reduce MP for a mek with hip hits.intgetMinimumMP(int mp) Is there a limit to how much we can reduce MP? 0intMule kicks are +1 to hitbooleanhasBadLegs(Entity entity) Bad legs check always returns falsevoidquadPilotModForLegsDestroyed(int destroyedLegs, PilotingRollData roll) What modifiers to we add for legs destroyed on a quad.intreduceQuadWalkMP(int mp, int legsDestroyed, int hipHits, int actuatorHits, boolean bTOLegDamage) Reduce a quad's walk MP for legs destroyed, hip hits, and actuator hits.booleantransfersCompositePip(Mek mek, HitData hit, boolean ammoExplosion) An extra point created by composite structure does not transfer (BMM p.117).Methods inherited from class megamek.common.rules.RulesUnits
getPhysicalTwistEnabled
-
Constructor Details
-
TWRulesUnits
public TWRulesUnits()
-
-
Method Details
-
getMuleKickModifier
public int getMuleKickModifier()Mule kicks are +1 to hit- Specified by:
getMuleKickModifierin classRulesUnits- Returns:
- the mule kick modifier
-
getDoesLegDestructionCauseImmobile
Does removing legs cause it to be immobile? No- Specified by:
getDoesLegDestructionCauseImmobilein classRulesUnits- Parameters:
mek- the MEK to check- Returns:
- always returns false
-
reduceQuadWalkMP
public int reduceQuadWalkMP(int mp, int legsDestroyed, int hipHits, int actuatorHits, boolean bTOLegDamage) Reduce a quad's walk MP for legs destroyed, hip hits, and actuator hits.- Specified by:
reduceQuadWalkMPin classRulesUnits- Parameters:
mp- the base movement pointslegsDestroyed- the number of legs destroyedhipHits- the number of hip hitsactuatorHits- the number of actuator hitsbTOLegDamage- true if using tactical operations leg damage rules- Returns:
- the reduced movement points
-
quadPilotModForLegsDestroyed
What modifiers to we add for legs destroyed on a quad.- Specified by:
quadPilotModForLegsDestroyedin classRulesUnits- Parameters:
destroyedLegs- the number of destroyed legsroll- the piloting roll data to modify
-
getMekMPReduction
public int getMekMPReduction(int hipHits, boolean bTOLegDamage, int mp) Reduce MP for a mek with hip hits.- Specified by:
getMekMPReductionin classRulesUnits- Parameters:
hipHits- the number of hip hitsbTOLegDamage- true if using tactical operations leg damage rulesmp- the base movement points- Returns:
- the reduced movement points
-
getMinimumMP
public int getMinimumMP(int mp) Is there a limit to how much we can reduce MP? 0- Specified by:
getMinimumMPin classRulesUnits- Parameters:
mp- the movement points- Returns:
- returns the input parameter with no change
-
hasBadLegs
Bad legs check always returns false- Specified by:
hasBadLegsin classRulesUnits- Parameters:
entity- the entity to check- Returns:
- always returns false
-
transfersCompositePip
An extra point created by composite structure does not transfer (BMM p.117).- Specified by:
transfersCompositePipin classRulesUnits
-