summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-30 20:47:17 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-30 20:47:17 +0200
commit2a423bb8e5becc1ae921f2fee0bfa92364adba94 (patch)
treed0a69cb9c34c753fa93bc2e4b76302802c88066b
parent0a7da42b1ddf1b03514cc2d6cccbc825dad2d6c3 (diff)
downloadplantagenet-2a423bb8e5becc1ae921f2fee0bfa92364adba94.tar.gz
influence check roll rating
-rw-r--r--rules.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/rules.ts b/rules.ts
index f1f71da..ceaa918 100644
--- a/rules.ts
+++ b/rules.ts
@@ -995,7 +995,6 @@ function is_active_command() {
return game.active === LANCASTER
}
-
// === STATE: TURN ===
function current_turn() {
@@ -2093,8 +2092,7 @@ function roll_influence_check(lord: Lord, spend: number, calc=common_ic) {
log(`Influence success`)
return true
} else {
- let rating = Math.max(1, Math.min(5, calc.rating(lord, 0)))
-
+ let rating = Math.max(1, Math.min(5, calc.rating(lord, spend)))
let die = roll_die()
if (die <= rating) {
@@ -9344,7 +9342,6 @@ exports.setup = function (seed, scenario, options) {
favoury: [],
},
-
actions: 0,
command: NOBODY,
who: NOBODY,
@@ -12222,7 +12219,6 @@ states.sun_in_splendour_now = {
},
}
-
// === HELD EVENT: ASPIELLES ===
function can_play_l_aspielles() {