Class LandlessEmployerExclusion

java.lang.Object
mekhq.campaign.mission.newContract.LandlessEmployerExclusion

public class LandlessEmployerExclusion extends Object
  • 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:
      true if the contract should be rejected, false otherwise