summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 6 insertions, 2 deletions
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) {