From f565e842e2abb4b29b29d828019c9eb076b4a79c Mon Sep 17 00:00:00 2001 From: autocommit Date: Mon, 13 Apr 2026 14:34:57 -0700 Subject: [PATCH] =?UTF-8?q?feat(tests):=20=E2=9C=A8=20Add=20test=20coverag?= =?UTF-8?q?e=20for=20marketplace=20building=20priority=20in=20auto-play=20?= =?UTF-8?q?logic=20to=20prevent=20warrior=20disbandment=20due=20to=20bankr?= =?UTF-8?q?uptcy?= 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/auto_play.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game/engine/scenes/tests/auto_play.gd b/src/game/engine/scenes/tests/auto_play.gd index c9d445ea..270401dd 100644 --- a/src/game/engine/scenes/tests/auto_play.gd +++ b/src/game/engine/scenes/tests/auto_play.gd @@ -472,6 +472,9 @@ func _next_building(city: Variant, player: Variant, city_count: int, has_settler # Then walls for defense if not city.has_building("walls"): return "walls" + # Marketplace for gold income — without this, warriors get disbanded from bankruptcy + if not city.has_building("marketplace"): + return "marketplace" # Count military units var military: int = 0 for u: Variant in player.units: