feat(game): ✨ add victory outcome override test
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
ba0d523363
commit
65d31423ea
1 changed files with 4 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue