Class AeroAVModCalculator

java.lang.Object
megamek.common.util.AeroAVModCalculator

public class AeroAVModCalculator extends Object
This whole class is a utility to calculate the aerospace AV modification for linked Artemis, Apollo, or PPC capacitor.
  • Constructor Details

    • AeroAVModCalculator

      public AeroAVModCalculator()
  • Method Details

    • calculateBonus

      public static int calculateBonus(WeaponType weapon, EquipmentType linkedBy, boolean bay)
      Computes any modification to the aerospace AV for linked Artemis, Apollo, or PPC capacitor
      Parameters:
      weapon - The type of weapon
      linkedBy - The type of equipment the weapon is linked by
      bay - Whether the weapon is part of a weapon bay
      Returns:
      The AV modification, if any