summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-02 10:32:29 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commite8a45b59da74cb9e4748bbcb45d78b7b12280a0b (patch)
tree44d030463c9eb92b6d9c827e291594893ff490e8
parentc08b50f70493e8c837ea58ecfdd6d0eb42f507aa (diff)
downloadnevsky-e8a45b59da74cb9e4748bbcb45d78b7b12280a0b.tar.gz
Prompt.
-rw-r--r--rules.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 07f4723..4a20bdd 100644
--- a/rules.js
+++ b/rules.js
@@ -4486,7 +4486,9 @@ function this_lord_has_house_of_suzdal() {
states.command = {
inactive: "Command",
prompt() {
- if (game.actions === 1)
+ if (game.actions === 0)
+ view.prompt = `Command: ${lord_name[game.command]} has no more actions.`
+ else if (game.actions === 1)
view.prompt = `Command: ${lord_name[game.command]} has ${game.actions} action.`
else
view.prompt = `Command: ${lord_name[game.command]} has ${game.actions} actions.`