Class LandlessEmployerExclusion
java.lang.Object
mekhq.campaign.mission.newContract.LandlessEmployerExclusion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanshouldRejectDefensiveObjectives(Faction employerFaction, boolean isPlayerAttacker, LocalDate currentDate) A contract where the player defends is a defense of the employer's territory, so an employer with no planets anywhere - neither its own nor a contained-faction host's worlds to stand on - has nothing to defend, and the contract fails outright.
-
Constructor Details
-
LandlessEmployerExclusion
public LandlessEmployerExclusion()
-
-
Method Details
-
shouldRejectDefensiveObjectives
public static boolean shouldRejectDefensiveObjectives(Faction employerFaction, boolean isPlayerAttacker, LocalDate currentDate) A contract where the player defends is a defense of the employer's territory, so an employer with no planets anywhere - neither its own nor a contained-faction host's worlds to stand on - has nothing to defend, and the contract fails outright. Contracts where the player attacks stay valid for a landless employer.- Returns:
trueif the contract should be rejected,falseotherwise
-