summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
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
},
}