Contracts¶
Every weapon is in every run from the start, so nothing is bought between runs. Cars, parts, maps and paints are unlocked by contracts, and each run ends with a score (cash grabbed times the difficulty's and modifiers' payout, plus the escape bonus). Mods can add contracts and the counters they read.
A contract is a reward row (car, part, map unlock or paint) with a counter
and a target. Count one of the game's counters, or add
one in counters.json and feed it from code:
scope:totaladds up across runs,runmust be reached in one run.- Progress reads as label, numbers and
unit:WARLORDS WRECKED 1/3. - If a mod is removed or fails to load, the save keeps its counters and unlocks. They return with the mod.
Example: warlord.