diff options
author | Frans Bongers <fransbongers@franss-mbp.home> | 2024-12-30 22:44:07 +0100 |
---|---|---|
committer | Frans Bongers <fransbongers@franss-mbp.home> | 2024-12-30 22:44:07 +0100 |
commit | 50d95d906d7d782d155e75635be4d637c1ccfb25 (patch) | |
tree | 779f45f3de545b9550539501910db3c35a71589e /rules.ts | |
parent | 4148cddd0370fa1ea9b9580a79ac1c73109c88a1 (diff) | |
download | land-and-freedom-50d95d906d7d782d155e75635be4d637c1ccfb25.tar.gz |
fix click fronts and remove console logs
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -198,7 +198,6 @@ export function action( action: string, arg: unknown ) { - console.log('action', player, action, arg); if (action !== 'undo') { state.undo = push_undo(); } @@ -1122,13 +1121,12 @@ states.choose_final_bid = { const faction = get_active_faction(); game.selected_cards[faction].push(c); const number_selected = game.selected_cards[faction].length; - console.log('number selected', number_selected); + const number_hand = game.hands[faction].length; if ( number_selected === 3 || (number_hand < 4 && number_selected === number_hand - 1) ) { - console.log('proceed'); resolve_active_and_proceed(); } else { next(); @@ -1796,7 +1794,6 @@ states.swap_card_tableau_hand = { resolve_spend_hp(); }, card(c: CardId) { - console.log('card', c); const faction = get_active_faction(); const selected_cards = game.selected_cards[faction]; @@ -2186,7 +2183,6 @@ function end_of_year() { if (is_won) { log('The war is won!'); } else { - console.log('The war is lost'); game_over('None', 'The war is lost. All Players lose the game!'); resolve_active_and_proceed(); return; |