From 049c9098cccfe7b70d6b664831171179817d3256 Mon Sep 17 00:00:00 2001 From: Natalie Date: Sun, 10 May 2026 04:04:22 -0700 Subject: [PATCH] =?UTF-8?q?fix(@projects/@magic-civilization):=20?= =?UTF-8?q?=F0=9F=90=9B=20update=20city=20initialization=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- src/game/engine/scenes/tests/full_game_demo_proof.gd | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/game/engine/scenes/tests/full_game_demo_proof.gd b/src/game/engine/scenes/tests/full_game_demo_proof.gd index 7913a853..590af6d3 100644 --- a/src/game/engine/scenes/tests/full_game_demo_proof.gd +++ b/src/game/engine/scenes/tests/full_game_demo_proof.gd @@ -73,12 +73,13 @@ func _ready() -> void: unit.id = "unit_%d_warrior" % i player.units.append(unit) - var city: CityScript = CityScript.new() - city.player_index = i + var city: CityScript = CityScript.new("city_%d_capital" % i) + city.owner_index = i city.position = start - city.id = "city_%d_capital" % i - city.city_name = "%s Capital" % player.player_name - city.population = 3 + i + if "city_name" in city: + city.city_name = "%s Capital" % player.player_name + if "population" in city: + city.population = 3 + i player.cities.append(city) # Build the renderers as direct children — no SubViewport hierarchy.