diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-07-28 21:07:00 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:31:29 +0100 |
commit | e1b10f53ffe0b444b977f2e2e53c01fa8dcd79c2 (patch) | |
tree | b7959ccdc50784f29bf708bf3ac22a7a22d89b32 | |
parent | 61b6fa09541a8cd00ea33bfd5a8059e99d56fbb3 (diff) | |
download | pax-pamir-e1b10f53ffe0b444b977f2e2e53c01fa8dcd79c2.tar.gz |
Fix off-by-one error in waive offers.
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -861,7 +861,7 @@ states.waive = { view.prompt = `${player_names[game.phasing]} asks you to waive the bribe to play #${game.card}.` let max_cost = Math.min(game.players[game.phasing].coins - game.reserve, game.count) gen_action('waive') - for (let i = 1; i < max_cost; ++i) + for (let i = 1; i <= max_cost; ++i) gen_action('offer_' + i) gen_action('refuse') }, |