Package mekhq.campaign.work
Class PlanetaryAcquisitionModifiers
java.lang.Object
mekhq.campaign.work.PlanetaryAcquisitionModifiers
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 Summary
Modifier and TypeMethodDescriptionstatic SkillCheckaddForCurrentSystem(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.static List<megamek.common.TargetRollModifier> forSystem(Campaign campaign, IAcquisitionWork acquisition, PlanetarySystem system)
-
Method Details
-
forSystem
public static List<megamek.common.TargetRollModifier> forSystem(Campaign campaign, IAcquisitionWork acquisition, @Nullable PlanetarySystem system) - Parameters:
campaign- the campaignacquisition- what is being boughtsystem- the system the purchase is tried in, ornullwhen 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 campaignacquisition- what is being boughtcheck- the check to show- Returns:
- the same check, with the current system's modifiers when they apply
-