From 0e394f0b4f84c8b9d8a2bcef2b9015291761b035 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Mar 2025 11:59:59 +0100 Subject: Note Momentum and Play Card extra turns in log. --- rules.js | 8 +++++++- rules.ts | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 72b3966..ecfbf6f 100644 --- a/rules.js +++ b/rules.js @@ -1005,7 +1005,13 @@ states.play_card = { game.selected_cards[faction].push(c); game.card_played = 0; game.played_card = game.selected_cards[faction][game.selected_cards[faction].length - 1]; - log_header("C" + game.played_card, faction); + const args = get_active_node_args(); + if (args && args.src === 'momentum') { + log_header("~ Momentum ~\nC" + game.played_card, faction); + } + else { + log_header("~ Play Card ~\nC" + game.played_card, faction); + } insert_after_active_node(create_state_node('player_turn', faction, { src: get_active_node_args().src })); resolve_active_and_proceed(); }, diff --git a/rules.ts b/rules.ts index be48715..672da09 100644 --- a/rules.ts +++ b/rules.ts @@ -1280,7 +1280,13 @@ states.play_card = { game.card_played = 0; // NOTE: I don't think we are using game.played_card in the UI at the moment? game.played_card = game.selected_cards[faction][game.selected_cards[faction].length - 1]; - log_header("C" + game.played_card, faction); + + const args = get_active_node_args(); + if (args && args.src === 'momentum') { + log_header("~ Momentum ~\nC" + game.played_card, faction); + } else { + log_header("~ Play Card ~\nC" + game.played_card, faction); + } insert_after_active_node(create_state_node('player_turn', faction, { src: get_active_node_args().src })); -- cgit v1.2.3