summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-25 12:04:31 +0100
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit93b0cf7f51b86faa4dc9990a77473b1a7e6f718e (patch)
tree32774e402af942cf1cdc947f22fbcb691e328ba3
parent93043cdacc6ca0593e2efc85d67cbc19d0123485 (diff)
downloadandean-abyss-93b0cf7f51b86faa4dc9990a77473b1a7e6f718e.tar.gz
Inactive prompt.
-rw-r--r--rules.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 5d419d0..48a4eac 100644
--- a/rules.js
+++ b/rules.js
@@ -6423,7 +6423,15 @@ exports.view = function (state, role) {
if (game.state === "game_over") {
view.prompt = game.victory
} else if (!is_current_role(role)) {
- let inactive = states[game.state].inactive || game.state
+ let inactive = states[game.state].inactive
+ if (!inactive) {
+ if (game.vm)
+ inactive = "Event"
+ else if (game.op)
+ inactive = game.op.type
+ else
+ inactive = game.state
+ }
view.prompt = `Waiting for ${faction_name[game.current]} \u2014 ${inactive}.`
} else {
view.actions = {}