Class PlanetaryAcquisitionModifiers

java.lang.Object
mekhq.campaign.work.PlanetaryAcquisitionModifiers

public final class PlanetaryAcquisitionModifiers extends Object
The planet's own modifiers to an acquisition roll under Planetary Acquisition: its tech level, industry and output. The daily search adds them for each system it tries, and the screens that show acquisition odds add them for the system the force is in, so a target number shown as 3+ is the one the search rolls against there.
  • Method Details

    • forSystem

      public static List<megamek.common.TargetRollModifier> forSystem(Campaign campaign, IAcquisitionWork acquisition, @Nullable PlanetarySystem system)
      Parameters:
      campaign - the campaign
      acquisition - what is being bought
      system - the system the purchase is tried in, or null when it is not tied to one
      Returns:
      the modifiers buying in that system adds, empty when there is no system
    • addForCurrentSystem

      public static SkillCheck addForCurrentSystem(Campaign campaign, IAcquisitionWork acquisition, SkillCheck check)
      Adds the current system's modifiers to an acquisition check that is only shown to the player, when Planetary Acquisition is on. The daily search tries the current system first.
      Parameters:
      campaign - the campaign
      acquisition - what is being bought
      check - the check to show
      Returns:
      the same check, with the current system's modifiers when they apply