War, palisades and the garrison
A war is people on the map: a column that marches in along a real route, defenders who muster at the gate, a wall that has to be battered through, a fight day by day, and a sack that burns the houses by the breach. Frightened villages fence themselves; peoples at daggers drawn raid each other.
Seventy years with war made likelier. The conflict lens shows the settlements in a recent clash or a siege; the city tab lists every warband on the map, what it is doing and how strong it is, and the town's garrison.
An army arrives. A foreign city that has turned hostile, once the town is worth marching on, sends an expedition: a share of its army, within bounds. It enters at the reachable edge of the valley furthest from the town, where the road from anywhere else would be, and marches along a real route at fourteen paces a day, drawn as up to forty figures two abreast. A column that can find no way to the town does not come.
The town sees it coming. Within forty paces every adult of fighting age takes up what arms they have and goes to meet it: soldiers and anybody practised with arms first, then the able men. A walled town shuts its gates and gathers inside the one the enemy is making for; an open one gathers at the edge of the houses facing it. A fighter is worth more for practice with arms and a sound kit, and every battle leaves the survivors on both sides better at it.
The siege. Defenders on an intact stone wall are worth two and a half of the men below it; on a palisade, a little over one and a half; in their own streets, a little more than the men attacking them, for knowing them. The attackers batter at the line nearest them — about eight days for stakes, twenty-four for a stone curtain, longer with defenders on it — while the defenders shoot down into them. When it goes, the columns of the wall at the breach come down to rubble and stay down until somebody pays to rebuild them. An army that has sat outside for seventy-five days gives up. An ally helps: a foreign city whose attitude is warm enough sends men against the besiegers every day of it.
The fight. Then it is a fight, a day at a time, each side losing a share of what the other can put against it. Attackers give up below two fifths of the strength they came with; defenders break below three tenths of the attackers’. A town that holds gains legitimacy. A town that breaks is sacked: at least three houses by the breach are fired, half the grain and more than half the treasury are carried off, some of the people who did not fight are killed, and everybody left remembers it, and so does the people whose name the army marched under.
Villages defend themselves. A village that has been raided within a lifetime, stands at odds with a neighbouring people, or lives under a threatening sky, and is big enough to fence, stakes out a palisade round its houses once it has the timber: a line of posts three high with a gate where each lane goes out. It holds for days, which is often long enough. Peoples at daggers drawn raid each other: once a year at most, the larger of two feuding settlements may send its young men, and any woman practised with arms, over the hill. The column walks there, and the fight is the same fight.
The garrison. The treasury keeps soldiers out of the town’s adults, the practised first, in proportion to the garrison policy. With no war on they stand watch on the wall walk, at a gate or in the square and practise with their arms. They are the first at the gate when there is a war.
Steering it. The governor sets the garrison, orders the wall, pays tribute to the most hostile city, and can send an embassy with gifts to the friendliest reachable city, which is what makes an ally. None of it is free. The shapes (march speed, wall worth, breach days, loot shares) are named constants in war.rs; the chance of a war per unit of threat is a tunable.
What is not modelled. Individual combat, weapons, cavalry and siege engines. The figures on the map stand for shares of a column; losses are a daily rate, not a battle simulation.
In the code: crates/sim/src/city/war.rs crates/sim/src/city/village.rs crates/sim/src/city/wall.rs