From 110cf9f77f91da4885ff52e5365d88e065b47059 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 6 May 2024 11:09:23 +0200 Subject: fix logging errors --- rules.js | 6 +++--- rules.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index 309d67b..c02f194 100644 --- a/rules.js +++ b/rules.js @@ -3414,7 +3414,7 @@ states.supply_source = { let port_supply = get_port_supply_amount(loc, false); let stronghold_supply = get_stronghold_supply_amount(loc, false); if (stronghold_supply > 0 && port_supply === 0) { - use_stronghold_supply(loc, stronghold_supply); + use_stronghold_supply(loc, get_stronghold_supply_amount(loc, true)); end_supply(); return; } @@ -3425,7 +3425,7 @@ states.supply_source = { game.state = "blockade_supply"; } else { - use_port_supply(loc, port_supply); + use_port_supply(loc, get_port_supply_amount(loc, true)); end_supply(); } return; @@ -5647,7 +5647,7 @@ states.for_trust_not_him_bribe = { prompt_influence_check(game.who, vassal_ic); }, check(spend) { - if (roll_influence_check("Bribe L" + game.vassal, game.who, spend, vassal_ic)) + if (roll_influence_check("Bribe V" + game.vassal, game.who, spend, vassal_ic)) muster_vassal(game.vassal, game.who); end_for_trust_not_him(); }, diff --git a/rules.ts b/rules.ts index b72e567..ffe786b 100644 --- a/rules.ts +++ b/rules.ts @@ -4162,7 +4162,7 @@ states.supply_source = { let stronghold_supply = get_stronghold_supply_amount(loc, false) if (stronghold_supply > 0 && port_supply === 0) { - use_stronghold_supply(loc, stronghold_supply) + use_stronghold_supply(loc, get_stronghold_supply_amount(loc, true)) end_supply() return } @@ -4173,7 +4173,7 @@ states.supply_source = { if (can_naval_blockade(get_lord_locale(game.command)) || can_naval_blockade(game.where)) { game.state = "blockade_supply" } else { - use_port_supply(loc, port_supply) + use_port_supply(loc, get_port_supply_amount(loc, true)) end_supply() } return @@ -6695,7 +6695,7 @@ states.for_trust_not_him_bribe = { prompt_influence_check(game.who, vassal_ic) }, check(spend) { - if (roll_influence_check("Bribe L" + game.vassal, game.who, spend, vassal_ic)) + if (roll_influence_check("Bribe V" + game.vassal, game.who, spend, vassal_ic)) muster_vassal(game.vassal, game.who) end_for_trust_not_him() }, -- cgit v1.2.3