Package mekhq.campaign.mission.contract.utilities
package mekhq.campaign.mission.contract.utilities
-
ClassDescriptionPure scoring behind active negotiation: turning the two negotiators' opposed
MarginOfSuccessresults into a single net margin.Commits aAbstractContractoffer from the market into an active campaign mission.TheContractAutomationclass provides a suite of methods used in automating actions when a contract starts.Rolls and applies a contract's randomContractCharacteristics.Utility class for calculating contract performance scores based on scenario outcomes.End-of-contract settlement steps that run when a contract is completed: repaying the employer for any salvage the player kept beyond their salvage rights, and paying shareholders their cut of the final payout.Handles a defensive StratCon contract whose employer loses control of the planet the contract is fought on.Handles contract morale checks and morale/report calculation for campaign missions.Represents possible morale check results for a contract.Represents possible performance outcomes for a contract's recent scenarios.Pure arithmetic behind the contract negotiation table: crossing the plateaus on theChaosContractStepsTablewhen a term is lowered, and the caps on how much may be sacrificed.The five negotiable contract terms, each a column on theChaosContractStepsTable.Utility class for generating pity contracts when a campaign does not have enough successful completed contracts.