magicciv/src
Natalie 7d13970a3a test(@projects/@magic-civilization): 🐛 set city.owner in happiness _make_city (fixes pop=1 → real pop)
city.owner drives _pi (the parallel-city-slot player row). _make_city never set
owner, so _pi stayed -1 and found()/set_population addressed an invalid row —
city population silently stayed at the default 1, breaking every happiness
assertion (e.g. balanced/1city/pop3 gave -4 instead of -6; citizen contributions
collapsed to -1/0). Set owner = 0 so the slot resolves. Production code is fine
(real cities always have an owner).

GUT: test_happiness_turn 24 → 4 failing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 04:50:07 -04:00
..
game test(@projects/@magic-civilization): 🐛 set city.owner in happiness _make_city (fixes pop=1 → real pop) 2026-06-24 04:50:07 -04:00
packages
simulator fix(simulator): 🔬 load the TechWeb into the headless path so research advances 2026-06-23 22:10:25 -04:00