Class HazardousLiquidPoolUtil

java.lang.Object
megamek.common.util.HazardousLiquidPoolUtil

public class HazardousLiquidPoolUtil extends Object
Methods that implement the Hazardous Liquid Pool as described in TO:AR p. 47
  • 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 liquid
      eruption - If this is from an eruption
      depth - Int depth of the liquid
      twGameManager - Current game manager (to damage entity)
      Returns:
      reports that should be added
    • getHazardousLiquidPoolDamageMultiplierForUnsealed

      public static int getHazardousLiquidPoolDamageMultiplierForUnsealed(Entity entity)
      Support vehicles and industrial meks without environmental sealing take double damage
    • getHazardousLiquidPoolDamageDivisorForInfantry

      public static double getHazardousLiquidPoolDamageDivisorForInfantry(Entity entity)
      Infantry units take more or less damage depending on if they have XCT training and the appropriate gear