Idle builders start queued repairs on tick

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-11-05 10:31:35 +00:00
parent c5b0c490cd
commit cf8c717ef0
2 changed files with 14 additions and 0 deletions

View file

@ -5712,6 +5712,9 @@ def _tick_city(world: World, now: float, rng: random.Random) -> bool:
construction = city["construction"]
if construction and construction["labour"] >= construction["needed"]:
_finish_construction(world, now)
changed = True
# Idle builders take the next funded job. Damage can queue one with nobody to start it.
if not city["construction"] and city["queue"]:
_start_next(world, now)
changed = True
while city["tier"] + 1 < len(TIERS) and city["population"] >= TIERS[city["tier"] + 1]["pop"]: