From 65d31423eab2e8e71ba84b562a5f3d378c933a4b Mon Sep 17 00:00:00 2001 From: Natalie Date: Thu, 16 Apr 2026 18:56:57 -0700 Subject: [PATCH] =?UTF-8?q?feat(game):=20=E2=9C=A8=20add=20victory=20outco?= =?UTF-8?q?me=20override=20test?= 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/engine/scenes/tests/auto_play.gd b/src/game/engine/scenes/tests/auto_play.gd index 811b643c..769cb37d 100644 --- a/src/game/engine/scenes/tests/auto_play.gd +++ b/src/game/engine/scenes/tests/auto_play.gd @@ -358,6 +358,10 @@ func _on_victory(player_index: int, victory_type: String) -> void: _victory = true _victory_winner = player_index _victory_type = victory_type + # Also set the stringified outcome — _finalize_run writes the last + # turn_stats line from _outcome, and without this override the line + # persists as "in_progress" even though a winner was declared. + _outcome = "victory" print("AutoPlay: VICTORY! Player %d wins via %s on turn %d" % [player_index, victory_type, _turn_count]) _append_event({ "type": "victory",