diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-11 19:04:46 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-11 19:16:35 +0100 |
commit | b269ed96af48a127ef562ccce920b47d3c387165 (patch) | |
tree | 3bd6d5df7ca48deb553066867daac04e5d95b097 | |
parent | 715e718765a467674b5a47391435a3267a9891cc (diff) | |
download | time-of-crisis-b269ed96af48a127ef562ccce920b47d3c387165.tar.gz |
v4: zap demagogue v2 remnants
-rw-r--r-- | rules.js | 37 |
1 files changed, 2 insertions, 35 deletions
@@ -4146,10 +4146,7 @@ states.demagogue_confirm = { log_h3("Demagogue.") game.demagogue = new Array(get_player_count()).fill(-1) game.count = game.current - if (is_classic()) - game.state = "demagogue" - else - game.state = "demagogue_v2" + game.state = "demagogue" goto_next_demagogue() }, } @@ -4189,33 +4186,6 @@ states.demagogue = { }, } -states.demagogue_v2 = { - inactive: "Demagogue", - demagogue: true, - prompt() { - prompt("Demagogue: Choose a card to discard (of value 2 or higher if possible).") - let only_ones = true - for (let c of current_hand()) { - if (card_value(c) > 1) { - only_ones = false - gen_action_card(c) - } - } - if (only_ones) { - for (let c of current_hand()) - if (card_value(c) === 1) - gen_action_card(c) - } - }, - card(c) { - push_undo() - set_delete(current_hand(), c) - set_add(current_discard(), c) - game.demagogue[game.current] = c - game.state = "demagogue_done" - }, -} - states.demagogue_done = { inactive: "Demagogue", demagogue: true, @@ -4225,10 +4195,7 @@ states.demagogue_done = { }, done() { clear_undo() - if (is_classic()) - game.state = "demagogue" - else - game.state = "demagogue_v2" + game.state = "demagogue" goto_next_demagogue() }, } |