Package megamek.common.util
Class HazardousLiquidPoolUtil
java.lang.Object
megamek.common.util.HazardousLiquidPoolUtil
Methods that implement the Hazardous Liquid Pool as described in TO:AR p. 47
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHazardousLiquidDamage(Entity entity, boolean eruption, int depth, TWGameManager twGameManager) Use this method to apply damage and generate reports for a unit moving in or starting its turn in hazardous liquid.static doubleInfantry units take more or less damage depending on if they have XCT training and the appropriate gearstatic intSupport vehicles and industrial meks without environmental sealing take double damage
-
Field Details
-
AVERAGE_DAMAGE_HAZARDOUS_LIQUID_POOL
public static final double AVERAGE_DAMAGE_HAZARDOUS_LIQUID_POOL- See Also:
-
-
Constructor Details
-
HazardousLiquidPoolUtil
public HazardousLiquidPoolUtil()
-
-
Method Details
-
getHazardousLiquidDamage
public static List<Report> getHazardousLiquidDamage(Entity entity, boolean eruption, int depth, TWGameManager twGameManager) Use this method to apply damage and generate reports for a unit moving in or starting its turn in hazardous liquid.- Parameters:
entity- Entity in the liquideruption- If this is from an eruptiondepth- Int depth of the liquidtwGameManager- Current game manager (to damage entity)- Returns:
- reports that should be added
-
getHazardousLiquidPoolDamageMultiplierForUnsealed
Support vehicles and industrial meks without environmental sealing take double damage -
getHazardousLiquidPoolDamageDivisorForInfantry
Infantry units take more or less damage depending on if they have XCT training and the appropriate gear
-