diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-29 20:46:39 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-29 20:46:39 +0200 |
commit | 618b0908a7fe355eb87646ffae1ab5c78a57fe7c (patch) | |
tree | 2088198fc299fd573b124f0ff18f815354ae96ac | |
parent | 1503e53dc669d45aeee833432580eedbace93962 (diff) | |
download | plantagenet-618b0908a7fe355eb87646ffae1ab5c78a57fe7c.tar.gz |
relax can lord muster check
-rw-r--r-- | play.js | 2 | ||||
-rw-r--r-- | rules.ts | 14 |
2 files changed, 2 insertions, 14 deletions
@@ -1610,7 +1610,7 @@ function on_update() { ui.fortress.classList.toggle("york", fortress < 0) ui.fortress.classList.toggle("lancaster", fortress >= 0) - ui.influence.style.top = (track_xy[Math.min(45,Math.abs(view.influence))][1]) + "px" + ui.influence.style.top = (track_xy[Math.min(45,Math.abs(view.influence))][1] - 20) + "px" ui.influence.style.left = (track_xy[Math.min(45,Math.abs(view.influence))][0]) + "px" ui.influence.classList.toggle("york", view.influence < 0) ui.influence.classList.toggle("lancaster", view.influence >= 0) @@ -2898,19 +2898,7 @@ function end_muster() { } function can_lord_muster(lord: Lord) { - if (get_lord_moved(lord)) - return false - - // must be on map - if (is_lord_on_map(lord)) { - // can use lordship - if (is_lord_at_friendly_locale(lord)) - return true - // can only parley - if (can_parley_at(get_lord_locale(lord))) - return true - } - return false + return is_lord_on_map(lord) && !get_lord_moved(lord) } function has_locale_to_muster(lord: Lord) { |