diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-06 13:57:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | c9e883274f37e34bfd87896c3a336fbdb6556f18 (patch) | |
tree | 3c6cfaf906ff6250ce11a60a9d217583975afb78 | |
parent | 9499b6cfe4f93b43a3c205646b4b45ea62f132f6 (diff) | |
download | plantagenet-c9e883274f37e34bfd87896c3a336fbdb6556f18.tar.gz |
Fix count_group_assets.
-rw-r--r-- | rules.js | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -944,14 +944,12 @@ function count_group_ships() { } function count_group_assets(type, group = game.group) { - let m = 0 let n = 0 for (let lord of group) { n += get_lord_assets(lord, type) - if ((game.state === 'command' || game.state === 'march_laden') && lord_has_capability(lord, AOW_LANCASTER_HAY_WAINS) && type === CART) - m = get_lord_assets(lord, CART) - n += m - } + if ((game.state === "command" || game.state === "march_laden") && lord_has_capability(lord, AOW_LANCASTER_HAY_WAINS) && type === CART) + n += get_lord_assets(lord, CART) + } return n } |