diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-23 11:59:59 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-23 12:10:59 +0100 |
commit | 0e394f0b4f84c8b9d8a2bcef2b9015291761b035 (patch) | |
tree | 47d5ffbb5ced35d289c1ab8e90d9ccc5df261f90 | |
parent | ad4cc37be3e14fdf8f631c64d99ab595a2524b24 (diff) | |
download | land-and-freedom-0e394f0b4f84c8b9d8a2bcef2b9015291761b035.tar.gz |
Note Momentum and Play Card extra turns in log.
-rw-r--r-- | rules.js | 8 | ||||
-rw-r--r-- | rules.ts | 8 |
2 files changed, 14 insertions, 2 deletions
@@ -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(); }, @@ -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 })); |