feat(game): add victory outcome override test

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-04-16 18:56:57 -07:00
parent ba0d523363
commit 65d31423ea

View file

@ -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",