diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-11 19:04:46 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-15 10:36:15 +0100 |
commit | baa07cd2c5732b8c549a6e50270335694de1031f (patch) | |
tree | 78147eac1f6cd60e5fb1fde6af106162b69f7a1b | |
parent | 472b4164d0ff59a6b5429e8d32993810d9343990 (diff) | |
download | time-of-crisis-baa07cd2c5732b8c549a6e50270335694de1031f.tar.gz |
v4: zap demagogue v2 remnants
-rw-r--r-- | rules.js | 37 |
1 files changed, 2 insertions, 35 deletions
@@ -4187,10 +4187,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() }, } @@ -4230,33 +4227,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, @@ -4266,10 +4236,7 @@ states.demagogue_done = { }, done() { clear_undo() - if (is_classic()) - game.state = "demagogue" - else - game.state = "demagogue_v2" + game.state = "demagogue" goto_next_demagogue() }, } |