fix: a scattered raid without its camp writes no report; roadmap: raiders are live

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Fabian @ Blax Software 2026-10-29 16:17:36 +01:00
parent 99e2b44872
commit c5286bc19a
2 changed files with 9 additions and 7 deletions

View File

@ -432,12 +432,14 @@ final class Rally
private function scatter(Movement $movement, CarbonImmutable $at): void private function scatter(Movement $movement, CarbonImmutable $at): void
{ {
$origin = Village::with('player')->find($movement->origin_id); $origin = Village::with('player')->find($movement->origin_id);
Report::write($this->village->player_id, Report::DEFENSE, [ if ($origin) {
'raid' => true, Report::write($this->village->player_id, Report::DEFENSE, [
'scattered' => true, 'raid' => true,
'attacker' => ['village' => $origin ? self::summary($origin) : null, 'units' => null, 'lost' => null], 'scattered' => true,
'defender' => ['village' => self::summary($this->village), 'units' => null, 'lost' => null], 'attacker' => ['village' => self::summary($origin), 'units' => null, 'lost' => null],
], $at); 'defender' => ['village' => self::summary($this->village), 'units' => null, 'lost' => null],
], $at);
}
$movement->delete(); $movement->delete();
} }

View File

@ -66,7 +66,7 @@ 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. 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] 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
- [ ] 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] 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
- [ ] 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 - [ ] 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
- [ ] Seasons: crown villages appear around 0|0 after some weeks; a player who holds most of them long enough wins the world, and the next world opens - [ ] Seasons: crown villages appear around 0|0 after some weeks; a player who holds most of them long enough wins the world, and the next world opens