feat(tests): ✨ Add test coverage for marketplace building priority in auto-play logic to prevent warrior disbandment due to bankruptcy
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
a7abb69245
commit
f565e842e2
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue