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 megamek.common.rolls.TargetRolladdForCurrentSystem(Campaign campaign, IAcquisitionWork acquisition, megamek.common.rolls.TargetRoll modifiers) Adds the current system's modifiers to acquisition modifiers that are only shown to the player, when Planetary Acquisition is on.static 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
-
addForCurrentSystem
public static megamek.common.rolls.TargetRoll addForCurrentSystem(Campaign campaign, IAcquisitionWork acquisition, megamek.common.rolls.TargetRoll modifiers) Adds the current system's modifiers to acquisition modifiers that are only shown to the player, when Planetary Acquisition is on. Modifiers that already settle the outcome are left as they are.- Parameters:
campaign- the campaignacquisition- what is being boughtmodifiers- the modifiers to show, such as those fromCampaign.getAcquisitionModifiers(mekhq.campaign.work.IAcquisitionWork)- Returns:
- the same modifiers, with the current system's modifiers when they apply
-