summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-16 20:24:38 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-16 20:56:08 +0200
commitc3203ffa1a9affa9a4b783ae611bae74a387022f (patch)
tree79af1fbbf4ed6151f9e6e7a98d40c0ce334a304e /rules.js
parentd106b8ca64989eaa416785522c92a3f7c84005a2 (diff)
downloadplantagenet-c3203ffa1a9affa9a4b783ae611bae74a387022f.tar.gz
Fix pillage locale.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js16
1 files changed, 3 insertions, 13 deletions
diff --git a/rules.js b/rules.js
index 23c0a15..c818afa 100644
--- a/rules.js
+++ b/rules.js
@@ -2016,9 +2016,8 @@ states.pillage = {
}
},
locale(loc) {
- // pillage the Locale
game.where = loc
- goto_pillage_locale()
+ game.state = "pillage_locale"
},
lord(lord) {
disband_influence_penalty(lord)
@@ -2029,16 +2028,6 @@ states.pillage = {
},
}
-function goto_pillage_locale() {
- push_state("pillage_locale")
-}
-
-function end_pillage_locale() {
- pop_state()
- game.where = NOWHERE
- end_pillage()
-}
-
states.pillage_locale = {
inactive: "Pillage",
prompt() {
@@ -2063,7 +2052,8 @@ states.pillage_locale = {
for (let next of data.locales[game.where].adjacent)
shift_favour_away(next)
- end_pillage_locale()
+ game.state = "pillage"
+ game.where = NOWHERE
},
}