diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-12-18 01:25:14 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:38 +0100 |
commit | 5930049b0c0e239ee6e160276735c963ec99fb42 (patch) | |
tree | fdb921cce2043ba378110b12ccc32d1d1ae18461 | |
parent | 7b0a6c41c6ccda2093381d222840beccd3999e45 (diff) | |
download | nevsky-5930049b0c0e239ee6e160276735c963ec99fb42.tar.gz |
Don't recompute supply if out of actions.
-rw-r--r-- | rules.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |