diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-11 21:27:41 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 8bf330fbae688779a81fe4b0a6a2f11d1b722238 (patch) | |
tree | 728b2dcd475444a40de8631c6a2173edd324f110 | |
parent | d3011e533c39d30f73be9e0c22ea09e42b36d9ea (diff) | |
download | plantagenet-8bf330fbae688779a81fe4b0a6a2f11d1b722238.tar.gz |
Delete unused code.
-rw-r--r-- | rules.js | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -1393,38 +1393,6 @@ function is_lord_at_friendly_locale(lord) { return is_friendly_locale(loc) } -function used_seat_capability(lord, where, extra) { - let seats = data.lords[lord].seats - if (extra) { - if (set_has(seats, where) && !extra.includes(where)) - return -1 - } else { - if (set_has(seats, where)) - return -1 - } - return -1 -} - -function for_each_seat(lord, fn, repeat = false) { - let list = data.lords[lord].seats - - for (let seat of list) - fn(seat) -} - -function is_lord_seat(lord, here) { - let result = false - for_each_seat(lord, seat => { - if (seat === here) - result = true - }) - return result -} - -function is_lord_at_seat(lord) { - return is_lord_seat(lord, get_lord_locale(lord)) -} - function has_locale_to_muster(lord) { if (!has_enemy_lord(data.lords[lord].seat)) return true |