diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-11 00:23:06 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-11 00:23:06 +0200 |
commit | 9768c57475a5e6734bd2fe4743e529a23c6df579 (patch) | |
tree | 864aa501c16af86c8042c4bd37fa44da3f5cf596 | |
parent | cb7de5fa6471b76341f255bdeafe5ad3d85841ba (diff) | |
download | plantagenet-9768c57475a5e6734bd2fe4743e529a23c6df579.tar.gz |
fix IP change log message order
-rw-r--r-- | rules.js | 4 | ||||
-rw-r--r-- | rules.ts | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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); } } } @@ -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) } } } |