diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-03-24 01:05:12 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-03-24 01:07:59 +0100 |
commit | 57c7b2292f44712b27efebff4401be22cead0437 (patch) | |
tree | 5559f1238a15f8f765244ae02f181e5b79a7c2f0 | |
parent | 8be7d70aa0ec5eea9c5f440322d0f73fa1c45759 (diff) | |
download | land-and-freedom-57c7b2292f44712b27efebff4401be22cead0437.tar.gz |
log messages when swapping and adding cards to tableau.
-rw-r--r-- | rules.js | 4 | ||||
-rw-r--r-- | rules.ts | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -701,7 +701,7 @@ states.add_card_to_tableau = { const faction_id = get_active_faction(); array_remove(game.hands[faction_id], game.hands[faction_id].indexOf(c)); game.tableaus[faction_id].push(c); - logp(`added C${c} to their tableau`); + log(">C" + c + " to tableau"); resolve_active_and_proceed(); }, skip() { @@ -1972,6 +1972,8 @@ states.swap_card_tableau_hand = { array_remove_item(tableau, selected_cards[selected_at_start + 1]); hand.push(selected_cards[selected_at_start + 1]); tableau.push(selected_cards[selected_at_start + 0]); + log(">C" + selected_cards[selected_at_start + 0] + " to tableau"); + log(">C" + selected_cards[selected_at_start + 1] + " to hand"); game.selected_cards[faction].length = selected_at_start; resolve_active_and_proceed(); } @@ -944,7 +944,7 @@ states.add_card_to_tableau = { const faction_id = get_active_faction(); array_remove(game.hands[faction_id], game.hands[faction_id].indexOf(c)); game.tableaus[faction_id].push(c); - logp(`added C${c} to their tableau`); + log(">C" + c + " to tableau"); resolve_active_and_proceed(); }, skip() { @@ -2395,6 +2395,8 @@ states.swap_card_tableau_hand = { array_remove_item(tableau, selected_cards[selected_at_start + 1]); hand.push(selected_cards[selected_at_start + 1]); tableau.push(selected_cards[selected_at_start + 0]); + log(">C" + selected_cards[selected_at_start + 0] + " to tableau"); + log(">C" + selected_cards[selected_at_start + 1] + " to hand"); game.selected_cards[faction].length = selected_at_start; resolve_active_and_proceed(); } |