diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-07-18 23:46:38 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-07-18 23:46:38 +0200 |
commit | 8b89868a519fdcae695a97ea899fcfa252053624 (patch) | |
tree | c1039505d30d5a619c158a389edcaa77027b1036 /rules.ts | |
parent | 0779bd97f74d1b058af46eb3a28296553978dcc4 (diff) | |
download | plantagenet-8b89868a519fdcae695a97ea899fcfa252053624.tar.gz |
pay vassals (at zero cost) automatically for percy's power
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2742,6 +2742,16 @@ function for_each_unpaid_vassal(f) { } function goto_pay_vassals() { + // Percy's Power pays all affected vassals + if (is_percys_power_triggered()) { + for (let v of all_vassals) { + let lord = get_vassal_lord(v) + if (is_friendly_lord(lord) && get_vassal_service(v) === current_turn() && is_lord_in_north(lord)) { + set_vassal_lord_and_service(v, get_vassal_lord(v), current_turn() + 1) + } + } + } + if (has_unpaid_vassals()) { log_h3("Pay Vassals") game.state = "pay_vassals" |