fix(@projects/@magic-civilization): 🐛 skip culture expansion on unexpandable tiles
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
c4c6083d51
commit
be8cb8e7f2
1 changed files with 4 additions and 0 deletions
|
|
@ -417,6 +417,10 @@ func _process_culture(player: RefCounted, game_map: RefCounted) -> void:
|
|||
if not city_ref is CityScript:
|
||||
continue
|
||||
var c: CityScript = city_ref as CityScript
|
||||
var tile_json: String = BuildableHelperScript.build_tile_yields_json(c, game_map)
|
||||
var can_expand: bool = c.process_culture(tile_json)
|
||||
if not can_expand:
|
||||
continue
|
||||
# Build candidates JSON for Rust border expansion
|
||||
var candidates_json: String = _build_border_candidates_json(c, game_map, player)
|
||||
var claimed: Vector2i = c.expand_borders(candidates_json)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue