summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-16 17:44:04 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-16 17:44:04 +0200
commite575c58f6e2652d27c4725d27279416f09fa7b1a (patch)
treea8790428e82f49bad5267acc3c3c0f38ebe2e9af
parent99dba1edc63faae505c7760e794e56f213d835d7 (diff)
downloadplantagenet-e575c58f6e2652d27c4725d27279416f09fa7b1a.tar.gz
Fix "Rebel Supply Depot".
-rw-r--r--rules.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index cde721e..b03a4c8 100644
--- a/rules.js
+++ b/rules.js
@@ -11367,7 +11367,7 @@ states.rebel_supply_depot = {
inactive: "Rebel Supply depot",
prompt() {
if (has_any_spoils()) {
- view.prompt = "Divide " + list_spoils() + "."
+ view.prompt = "Rebel Supply Depot: Divide " + list_spoils() + "."
let here = get_lord_locale(game.command)
for (let lord = first_friendly_lord; lord <= last_friendly_lord; ++lord) {
if (get_lord_locale(lord) === here)
@@ -11386,14 +11386,15 @@ states.rebel_supply_depot = {
take_spoils(PROV)
},
end_spoils() {
+ push_undo_without_who()
end_rebel_supply_depot()
},
}
function end_rebel_supply_depot() {
pop_state()
- game.spoils = 0
game.what = NOTHING
+ game.spoils = 0
}
// === HELD EVENT: SURPRISE LANDING ===