From c3203ffa1a9affa9a4b783ae611bae74a387022f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 16 Apr 2024 20:24:38 +0200 Subject: Fix pillage locale. --- rules.js | 16 +++------------- 1 file 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 }, } -- cgit v1.2.3