From 4aed620742c3d213fd71344471e9a8d842e85ff0 Mon Sep 17 00:00:00 2001 From: autocommit Date: Thu, 16 Apr 2026 23:42:34 -0700 Subject: [PATCH] =?UTF-8?q?fix(scenes):=20=F0=9F=90=9B=20Fix=20luxury=20co?= =?UTF-8?q?unt=20calculation=20discrepancies=20during=20auto-play=20to=20e?= =?UTF-8?q?nsure=20accurate=20player=20stats=20tracking?= 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/engine/scenes/tests/auto_play.gd b/src/game/engine/scenes/tests/auto_play.gd index 769cb37d..2d3303ab 100644 --- a/src/game/engine/scenes/tests/auto_play.gd +++ b/src/game/engine/scenes/tests/auto_play.gd @@ -1893,7 +1893,7 @@ func _build_player_stats() -> Dictionary: mil += 1 _ensure_stats(idx) var pstat: Dictionary = _stats[idx] - var luxuries: int = HappinessScript._count_unique_luxuries(p, game_map) + var luxuries: int = HappinessScript._collect_unique_luxury_ids(p, game_map).size() var happiness: int = int(p.get("happiness")) if p.get("happiness") != null else 0 var gpt: int = int(p.get("gold_per_turn")) if p.get("gold_per_turn") != null else 0 var gold: int = int(p.get("gold")) if p.get("gold") != null else 0