From 9768c57475a5e6734bd2fe4743e529a23c6df579 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 11 May 2024 00:23:06 +0200 Subject: fix IP change log message order --- rules.js | 4 ++-- rules.ts | 4 ++-- 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) } } } -- cgit v1.2.3