A village whose space is mostly camps becomes a resource village (+20% from its
camps); one mostly barracks, stable and workshop a military village (+20% training
speed, +10% defence). The payload carries the role and the space per role.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The map's coordinates now run from -500 to 499 around 0|0, with DS continent names
counted from the top-left (K55 at 0|0). New villages settle on a frontier whose
radius follows all villages at DS density (0.29 per field), at a random angle in
the direction the player picked; they avoid touching other players, not barbarians.
Each join brings 1.3 barbarian villages on average within a few fields. The
one-time barbarian square around the centre is gone, and game:reset-world wipes a
world back to empty while keeping user accounts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
villages.space becomes the base at HQ level 0 (existing villages 50 -> 40). A queued
HQ demolition counts already, and the HQ can't go below what stands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Starvation::sync() runs after every mutation and event: it keeps food.runs_out at
the moment the stock hits 0, starts the grace timer once the village starves and
stops it when income covers upkeep again. Each desertion wave takes the fewest
soldiers, highest upkeep first, that feed the rest; then the levy ends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drafted villagers still eat but stop working; recruiting trains only undrafted ones.
A levy.ends event settles the village and sends them back; village.endLevy ends it early.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>