summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-07 13:10:06 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit9525a86dad54268ddac78af3cf155cb97c7f4d88 (patch)
tree5f77f0873efdc117cc0d3e146d2ba3b2f6d590f5
parentf67bb4873562d9e8e6656b51e38de8f1c1ea52f0 (diff)
downloadnevsky-9525a86dad54268ddac78af3cf155cb97c7f4d88.tar.gz
Sack!
-rw-r--r--rules.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 487da28..572e8de 100644
--- a/rules.js
+++ b/rules.js
@@ -8089,10 +8089,10 @@ function goto_sack() {
else if (is_castle(here))
award_spoils(1)
- goto_sack()
+ resume_sack()
}
-function goto_sack() {
+function resume_sack() {
if (has_friendly_lord(game.battle.where))
game.state = "sack"
else
@@ -8114,11 +8114,12 @@ states.sack = {
goto_ransom(lord)
else
disband_lord(lord, true)
+ resume_sack()
},
}
function end_ransom_sack() {
- goto_sack()
+ resume_sack()
}
// === ENDING THE BATTLE: WITHDRAW ===