summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-06 11:09:23 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-06 11:09:53 +0200
commit110cf9f77f91da4885ff52e5365d88e065b47059 (patch)
treea258438c942fb8b74ccff85d7ecc3a637d27ecc5
parente7cc75774f1da5e2b4068ce662d0c3e503e68c89 (diff)
downloadplantagenet-110cf9f77f91da4885ff52e5365d88e065b47059.tar.gz
fix logging errors
-rw-r--r--rules.js6
-rw-r--r--rules.ts6
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()
},