Class ContractCharacteristics

java.lang.Object
mekhq.campaign.mission.contract.utilities.ContractCharacteristics

public final class ContractCharacteristics extends Object
Rolls and applies a contract's random ContractCharacteristics. This is the single home for characteristic mechanics: the roll, the generation-time effects that are baked straight into the contract's stored data, and the derived values (bonus payments and reputation/standing multipliers) that the accept, completion, and negotiation hooks read at their own point in the contract lifecycle.

Characteristics obey a strict grammar: each acts on exactly one lever, at most one characteristic per ContractCharacteristic.Category is ever present, and the magnitude on each constant is interpreted per category.