diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-16 20:24:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-16 20:56:08 +0200 |
commit | c3203ffa1a9affa9a4b783ae611bae74a387022f (patch) | |
tree | 79af1fbbf4ed6151f9e6e7a98d40c0ce334a304e /rules.js | |
parent | d106b8ca64989eaa416785522c92a3f7c84005a2 (diff) | |
download | plantagenet-c3203ffa1a9affa9a4b783ae611bae74a387022f.tar.gz |
Fix pillage locale.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -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 }, } |