From 8c035960a9a0c2042c900cd530b68c9b2de3b120 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Fri, 29 Nov 2024 23:31:57 +0000 Subject: Improve prompt when no card is played --- rules.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index e48a480..abf4c3c 100644 --- a/rules.js +++ b/rules.js @@ -599,7 +599,7 @@ states.choose_card = { select_card(card) }, pass() { - log("Passed.") + log("Passed") game.state = 'end_round' }, } @@ -4381,7 +4381,11 @@ function vm_goto(op, nop, dir, step) { } function prompt_event(str) { - view.prompt = card_name[this_card()] + ": " + str + if (this_card() > 0) { + view.prompt = card_name[this_card()] + ": " + str + } else { + view.prompt = str + } } function event_prompt(str) { -- cgit v1.2.3