summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-09-18 21:39:43 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-17 13:11:27 +0100
commit9f5d42eed41a7d41db416c341942806ec84fd75d (patch)
tree226c829c0877564a740fad8ed7f5e7b2f1956c6b /rules.js
parentd99c41b26f058935b796f3092e3ee86930b072a4 (diff)
downloadrommel-in-the-desert-9f5d42eed41a7d41db416c341942806ec84fd75d.tar.gz
Fix state collision in end_oasis_supply.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 685c400..6146f6d 100644
--- a/rules.js
+++ b/rules.js
@@ -2519,9 +2519,9 @@ function end_fortress_supply() {
game.assign = 0
if (game.state === 'initial_fortress_supply')
game.state = 'initial_oasis_supply'
- if (game.state === 'final_fortress_supply')
+ else if (game.state === 'final_fortress_supply')
game.state = 'final_oasis_supply'
- if (game.state === 'buildup_fortress_supply')
+ else if (game.state === 'buildup_fortress_supply')
game.state = 'buildup_oasis_supply'
resume_oasis_supply()
}
@@ -2630,9 +2630,9 @@ function resume_oasis_supply() {
function end_oasis_supply() {
if (game.state === 'initial_oasis_supply')
goto_initial_supply_check_recover()
- if (game.state === 'final_oasis_supply')
+ else if (game.state === 'final_oasis_supply')
goto_final_supply_check_disrupt()
- if (game.state === 'buildup_oasis_supply')
+ else if (game.state === 'buildup_oasis_supply')
goto_buildup_supply_check_recover()
}
@@ -5553,7 +5553,7 @@ function resume_buildup_eliminate_unsupplied() {
}
states.buildup_eliminate_unsupplied = {
- inactive: "buildup (unsupplied)",
+ inactive: "buildup",
prompt() {
view.prompt = `Buildup: Eliminate unsupplied units.`
for_each_friendly_unit_on_map(u => {