diff options
author | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 23:31:57 +0000 |
---|---|---|
committer | iainp5 <iain.pearce.ip@gmail.com> | 2024-11-29 23:31:57 +0000 |
commit | 8c035960a9a0c2042c900cd530b68c9b2de3b120 (patch) | |
tree | 2ce104221ef9a0d752b189733d9139dd8dcd118c /rules.js | |
parent | f1929fbafcddad02f83fc6dabf6e967d9101a08a (diff) | |
download | 1989-dawn-of-freedom-8c035960a9a0c2042c900cd530b68c9b2de3b120.tar.gz |
Improve prompt when no card is played
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) { |