summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-08-03 19:22:13 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commitcb598dd992dc13d1e9902a7b1f60b1a5fc410763 (patch)
tree76e206f969c890d28b93d4f5ebebe247113e9eaa
parente1b10f53ffe0b444b977f2e2e53c01fa8dcd79c2 (diff)
downloadpax-pamir-cb598dd992dc13d1e9902a7b1f60b1a5fc410763.tar.gz
Show reason for asking for bribe in log as well as prompt.
-rw-r--r--rules.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 3678126..67bd626 100644
--- a/rules.js
+++ b/rules.js
@@ -838,7 +838,10 @@ states.bribe = {
},
beg() {
let p = game.bribe
- log(`Asked ${player_names[p]} to waive the bribe for #${game.card}.`)
+ if (typeof game.where === 'string')
+ log(`Asked ${player_names[p]} to waive the bribe to use #${game.card} to ${game.where}.`)
+ else
+ log(`Asked ${player_names[p]} to waive the bribe to play #${game.card}.`)
game.state = 'waive'
set_active(p)
},