From e00b34d7eb354549e2229858a2daafee48a3d0b3 Mon Sep 17 00:00:00 2001 From: teisuru <31881306+teisuru@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:54:11 +0200 Subject: update scots, earl rivers, welsh rebellion --- rules.js | 10 ++++++++-- rules.ts | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 1cb802f..eb29ff5 100644 --- a/rules.js +++ b/rules.js @@ -9863,6 +9863,7 @@ states.scots = { lord(lord) { push_undo(); game.who = lord; + logi("L" + lord); }, }; // === EVENT: LANCASTER HENRY PRESSURES PARLIAMENT === @@ -10134,27 +10135,33 @@ states.welsh_rebellion_remove_troops = { }, lord(lord) { push_undo(); + logi("L" + lord); set_lord_moved(lord, 1); game.who = lord; game.count = 2; }, burgundians(lord) { + logii("Burgundians"); add_lord_forces(lord, BURGUNDIANS, -1); resume_welsh_rebellion_remove_troops(lord); }, mercenaries(lord) { + logii("Mercenaries"); add_lord_forces(lord, MERCENARIES, -1); resume_welsh_rebellion_remove_troops(lord); }, longbowmen(lord) { + logii("Longbowmen"); add_lord_forces(lord, LONGBOWMEN, -1); resume_welsh_rebellion_remove_troops(lord); }, men_at_arms(lord) { + logii("Men-at-arms"); add_lord_forces(lord, MEN_AT_ARMS, -1); resume_welsh_rebellion_remove_troops(lord); }, militia(lord) { + logii("Militia"); add_lord_forces(lord, MILITIA, -1); resume_welsh_rebellion_remove_troops(lord); }, @@ -10763,16 +10770,15 @@ states.earl_rivers = { }, lord(lord) { push_undo(); + logi("L" + lord); game.who = lord; }, add_militia() { - log(">L" + game.who); set_lord_moved(game.who, 1); add_lord_forces(game.who, MILITIA, 1); game.who = NOBODY; }, add_militia2() { - log(">L" + game.who); set_lord_moved(game.who, 1); add_lord_forces(game.who, MILITIA, 2); game.who = NOBODY; diff --git a/rules.ts b/rules.ts index a087429..7f45b6e 100644 --- a/rules.ts +++ b/rules.ts @@ -11430,6 +11430,7 @@ states.scots = { lord(lord) { push_undo() game.who = lord + logi("L" + lord) }, } @@ -11721,27 +11722,33 @@ states.welsh_rebellion_remove_troops = { }, lord(lord) { push_undo() + logi("L" + lord) set_lord_moved(lord, 1) game.who = lord game.count = 2 }, burgundians(lord) { + logii("Burgundians") add_lord_forces(lord, BURGUNDIANS, -1) resume_welsh_rebellion_remove_troops(lord) }, mercenaries(lord) { + logii("Mercenaries") add_lord_forces(lord, MERCENARIES, -1) resume_welsh_rebellion_remove_troops(lord) }, longbowmen(lord) { + logii("Longbowmen") add_lord_forces(lord, LONGBOWMEN, -1) resume_welsh_rebellion_remove_troops(lord) }, men_at_arms(lord) { + logii("Men-at-arms") add_lord_forces(lord, MEN_AT_ARMS, -1) resume_welsh_rebellion_remove_troops(lord) }, militia(lord) { + logii("Militia") add_lord_forces(lord, MILITIA, -1) resume_welsh_rebellion_remove_troops(lord) }, @@ -12395,16 +12402,15 @@ states.earl_rivers = { }, lord(lord) { push_undo() + logi("L" + lord) game.who = lord }, add_militia() { - log(">L" + game.who) set_lord_moved(game.who, 1) add_lord_forces(game.who, MILITIA, 1) game.who = NOBODY }, add_militia2() { - log(">L" + game.who) set_lord_moved(game.who, 1) add_lord_forces(game.who, MILITIA, 2) game.who = NOBODY -- cgit v1.2.3