summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-03-23 11:59:59 +0100
committerTor Andersson <tor@ccxvii.net>2025-03-23 12:10:59 +0100
commit0e394f0b4f84c8b9d8a2bcef2b9015291761b035 (patch)
tree47d5ffbb5ced35d289c1ab8e90d9ccc5df261f90 /rules.ts
parentad4cc37be3e14fdf8f631c64d99ab595a2524b24 (diff)
downloadland-and-freedom-0e394f0b4f84c8b9d8a2bcef2b9015291761b035.tar.gz
Note Momentum and Play Card extra turns in log.
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts8
1 files changed, 7 insertions, 1 deletions
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 }));