summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-18 01:25:14 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit5930049b0c0e239ee6e160276735c963ec99fb42 (patch)
treefdb921cce2043ba378110b12ccc32d1d1ae18461
parent7b0a6c41c6ccda2093381d222840beccd3999e45 (diff)
downloadnevsky-5930049b0c0e239ee6e160276735c963ec99fb42.tar.gz
Don't recompute supply if out of actions.
-rw-r--r--rules.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 10145f0..7375a35 100644
--- a/rules.js
+++ b/rules.js
@@ -3225,6 +3225,11 @@ function goto_sally() {
function update_supply() {
// TODO: Lodya - select boat OR ship (we count both here...)
+ if (game.actions < 1) {
+ game.supply = 0
+ return
+ }
+
let season = current_season()
let here = get_lord_locale(game.command)
let boats = 0