From 93b0cf7f51b86faa4dc9990a77473b1a7e6f718e Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 25 Mar 2023 12:04:31 +0100 Subject: Inactive prompt. --- rules.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 = {} -- cgit v1.2.3