From 10079ff176639f36a2c16caa98e2eefcf2fadae4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 17 Apr 2024 11:06:34 +0200 Subject: Fix tax fix. --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index f5f6280..055f30b 100644 --- a/rules.js +++ b/rules.js @@ -3448,7 +3448,7 @@ function get_stronghold_supply_amount(loc) { else supply = 1 - if (lord_has_stafford_branch(game.command, lord)) + if (lord_has_stafford_branch(loc, game.command)) supply += 1 return modify_supply(loc, supply) @@ -3777,12 +3777,12 @@ function can_tax_at(here, lord) { return true // Own seat - if (here === data.lords[game.command].seat) + if (here === data.lords[lord].seat) return true // vassal seats for (let vassal = first_vassal; vassal <= last_vassal; ++vassal) - if (is_vassal_mustered_with(vassal, game.command)) + if (is_vassal_mustered_with(vassal, lord)) if (here === data.vassals[vassal].seat) return true } @@ -10428,7 +10428,7 @@ states.tax_collectors_lord = { log(`Taxed %${game.where}.`) add_lord_assets(game.who, COIN, get_tax_amount(game.where, game.who) * 2) - end_tax_lord() + end_tax_collectors_lord() } }, spend1: add_influence_check_modifier_1, -- cgit v1.2.3