From d21be0f5a699cbe0f754b753178d49d43c4b03c6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 9 May 2024 22:31:11 +0200 Subject: Tides of War apply net total before clamping. --- rules.js | 3 +-- rules.ts | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index cf060b2..b66c003 100644 --- a/rules.js +++ b/rules.js @@ -7821,7 +7821,6 @@ function goto_tides_of_war() { } if (set_has(INFLUENCE_TURNS, current_turn())) lanc += tow_influence(all_lancaster_lords); - increase_lancaster_influence(lanc); log("Total: " + lanc); log_h3("York"); york += tow_presence("Lord in North", all_york_lords, is_lord_in_north); @@ -7846,8 +7845,8 @@ function goto_tides_of_war() { york += tow(1, "C" + AOW_YORK_FIRST_SON); if (set_has(INFLUENCE_TURNS, current_turn())) york += tow_influence(all_york_lords); - increase_york_influence(york); log("Total: " + york); + game.influence = Math.max(0, Math.min(45, game.influence + lanc - york)); if (eligible_charity()) goto_we_done_deeds_of_charity(); else diff --git a/rules.ts b/rules.ts index 7ea5168..27ef448 100644 --- a/rules.ts +++ b/rules.ts @@ -9168,7 +9168,6 @@ function goto_tides_of_war() { if (set_has(INFLUENCE_TURNS, current_turn())) lanc += tow_influence(all_lancaster_lords) - increase_lancaster_influence(lanc) log("Total: " + lanc) log_h3("York") @@ -9201,9 +9200,10 @@ function goto_tides_of_war() { if (set_has(INFLUENCE_TURNS, current_turn())) york += tow_influence(all_york_lords) - increase_york_influence(york) log("Total: " + york) + game.influence = Math.max(0, Math.min(45, game.influence + lanc - york)) + if (eligible_charity()) goto_we_done_deeds_of_charity() else -- cgit v1.2.3