diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-29 22:37:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-29 22:37:40 +0200 |
commit | 1a3eebb3a2ba30f427f0a8e73cee75deef00ee70 (patch) | |
tree | a7f7c7e3eb8c75588b4fa968c9cd3cdd2145c30c | |
parent | fe6cade2c58184be8a9bd6eac6146ca74520fede (diff) | |
download | plantagenet-1a3eebb3a2ba30f427f0a8e73cee75deef00ee70.tar.gz |
reverse the polarity!
-rw-r--r-- | play.js | 1 | ||||
-rw-r--r-- | rules.ts | 10 |
2 files changed, 5 insertions, 6 deletions
@@ -1335,6 +1335,7 @@ function update_vassals() { if (ui.vassal_map[v]) { ui.vassal_map[v].classList.remove("hide") ui.vassal_map[v].classList.toggle("action", is_action("vassal", v)) + ui.vassal_map[v].classList.toggle("selected", v === view.vassal) } } else { // on calendar (+ maybe on lord mat) @@ -2033,9 +2033,9 @@ function vassal_ic_rating(lord: Lord, spend: number) { // Note: use of game.vassal if (game.active === LANCASTER) - rating += data.vassals[game.vassal].influence - else rating -= data.vassals[game.vassal].influence + else + rating += data.vassals[game.vassal].influence return rating } @@ -2666,6 +2666,8 @@ states.pay_vassals = { // === 3.2.4 DISBAND === function clear_lord(lord: Lord) { + for_each_vassal_with_lord(lord, disband_vassal) + discard_lord_capability_n(lord, 0) discard_lord_capability_n(lord, 1) @@ -2679,10 +2681,6 @@ function clear_lord(lord: Lord) { set_lord_moved(lord, 0) - for_each_vassal_with_lord(lord, v => { - disband_vassal(v) - }) - check_capture_of_the_king() } |