- [x] Actions: join world (HQ 0, storage 0, farm 0), build, upgrade, demolish with refund, cancel with refund, set priority. Feature tests with time travel
- [x] WS controllers `village.show|build|upgrade|demolish|cancel|staff` and a `village:updated` push
- [x] UI: resource bar with projected values, population and food budget, building table with staffing, village as a low-poly isometric diorama (full width), build queue with builders and countdowns
- [x] Spawn placement, like Die Stämme: the world starts at 0|0 (negative coordinates, DS continent names) and grows ring by ring with all villages at DS density; players pick a direction (random, NW, NE, SW, SE) and never land right next to another player
- [x] Barbarian villages come with the players: 1.3 per join on average, within a few fields of the new village, random levels; `game:reset-world` starts a world over
- [x]`config/game/units.php`: spear, sword, archer, light cav, heavy cav, ram, catapult, nobleman, with food upkeep
- [x] Barracks, stable, workshop, academy as building instances (several barracks run parallel recruit queues); only these advanced buildings get requirements, e.g. academy needs headquarters + barracks
- [x] Recruiting turns villagers into soldiers; lazy per-unit completion
- [x]`TravelTime` (slowest unit, distance, unit speed, travel mode) with unit tests
- [x] Travel modes from `movement.php`; warning time from visibility and detection radius; watchtower
- [x] Send attack or support (host pays upkeep), send support home, recall, return trips
- [x]`CombatResolver` and `LootCalculator` (wall, morale, luck, night bonus, hiding place, rams, catapults), with levied militia defending, with unit tests
- [x] Beginner protection
- [x] Reports: list, detail, unread count, delete
- [x] Incoming-attack push and UI: rally point screen, troop movements, support, incoming box and badge, send from the map
## M4.5: Tribal Wars essentials
What Die Stämme has at this stage that the game still lacks.
The world pushes back, so a world with few players is a game too: something threatens the village, raiding costs a decision, building space forces a choice of what a village is for, and a world has an end.
- [x] Barbarian garrisons: troops from the village's points in one of four profiles (spearmen, swordsmen, archers, riders), capped by its food, regrowing after a hit; their stock grows from their own buildings
- [x] Raiders: the nearest barbarian camp sends a band at every player village about once a day, announced hours ahead and sized by the village's points, with rams against a wall; hitting the camp first shrinks or scatters the band; loot goes back to the camp, a beaten band pays a bounty
- [x] Scarce building space (5 per headquarters level instead of 20) and specialisation: a resource village produces more, a military village trains faster and defends better
- [x] Market and merchants, partly: the market with merchants per level, sending resources, offers between players and repeating trade routes. Still open: escorts and travel modes for caravans, encounters, food deliveries (`food_deliveries`) and the 24h import average
- [x] Tribes with members, roles and invites; alliances and NAPs accepted by both and ended with notice, enmity declared alone; no attacks within a tribe or across a pact
- [ ] Tribe relations applied at encounter time (with M5)