summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-05-27 18:19:21 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commite9132aea507194dfa7bbb1dd30f83aee0f9beb05 (patch)
tree7d5a6fead0a74c305029580f82b1d0f65fe24f48
parentf641fd09c50adbb9370d39defe5de9d4b6b28891 (diff)
downloadjulius-caesar-e9132aea507194dfa7bbb1dd30f83aee0f9beb05.tar.gz
caesar: Only show "End navis to port" if no navis left at sea that can move.
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 24c609c..4166da8 100644
--- a/rules.js
+++ b/rules.js
@@ -2118,7 +2118,8 @@ states.navis_to_port = {
}
if (count > 0)
view.prompt += " " + count + " left.";
- gen_action_pass(view, "End navis to port");
+ if (count == 0)
+ gen_action_pass(view, "End navis to port");
gen_action_undo(view);
},
block: function (who) {