diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-25 12:04:31 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | 93b0cf7f51b86faa4dc9990a77473b1a7e6f718e (patch) | |
tree | 32774e402af942cf1cdc947f22fbcb691e328ba3 | |
parent | 93043cdacc6ca0593e2efc85d67cbc19d0123485 (diff) | |
download | andean-abyss-93b0cf7f51b86faa4dc9990a77473b1a7e6f718e.tar.gz |
Inactive prompt.
-rw-r--r-- | rules.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 = {} |