summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-11 00:23:06 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-11 00:23:06 +0200
commit9768c57475a5e6734bd2fe4743e529a23c6df579 (patch)
tree864aa501c16af86c8042c4bd37fa44da3f5cf596
parentcb7de5fa6471b76341f255bdeafe5ad3d85841ba (diff)
downloadplantagenet-9768c57475a5e6734bd2fe4743e529a23c6df579.tar.gz
fix IP change log message order
-rw-r--r--rules.js4
-rw-r--r--rules.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index bdb459e..0ec6077 100644
--- a/rules.js
+++ b/rules.js
@@ -7268,12 +7268,12 @@ states.capture_of_the_king = {
},
lord(lord) {
push_undo();
+ increase_york_influence(10);
log(`L${LORD_HENRY_VI} captured by L${lord}.`);
set_delete(game.battle.routed, LORD_HENRY_VI);
set_delete(game.battle.fled, LORD_HENRY_VI);
clear_lord(LORD_HENRY_VI);
set_lord_locale(LORD_HENRY_VI, CAPTURE_OF_THE_KING + lord);
- increase_york_influence(10);
end_battle_losses();
},
};
@@ -7283,9 +7283,9 @@ function check_capture_of_the_king() {
if (loc >= CAPTURE_OF_THE_KING) {
let who = loc - CAPTURE_OF_THE_KING;
if (!is_lord_on_map(who)) {
+ increase_lancaster_influence(10);
log(`L${LORD_HENRY_VI} released!`);
disband_lord(LORD_HENRY_VI);
- increase_lancaster_influence(10);
}
}
}
diff --git a/rules.ts b/rules.ts
index 8200f67..8b2397d 100644
--- a/rules.ts
+++ b/rules.ts
@@ -8521,12 +8521,12 @@ states.capture_of_the_king = {
},
lord(lord) {
push_undo()
+ increase_york_influence(10)
log(`L${LORD_HENRY_VI} captured by L${lord}.`)
set_delete(game.battle.routed, LORD_HENRY_VI)
set_delete(game.battle.fled, LORD_HENRY_VI)
clear_lord(LORD_HENRY_VI)
set_lord_locale(LORD_HENRY_VI, CAPTURE_OF_THE_KING + lord as Locale)
- increase_york_influence(10)
end_battle_losses()
},
}
@@ -8537,9 +8537,9 @@ function check_capture_of_the_king() {
if (loc >= CAPTURE_OF_THE_KING) {
let who = loc - CAPTURE_OF_THE_KING as Lord
if (!is_lord_on_map(who)) {
+ increase_lancaster_influence(10)
log(`L${LORD_HENRY_VI} released!`)
disband_lord(LORD_HENRY_VI)
- increase_lancaster_influence(10)
}
}
}