diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-06 15:31:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:16:55 +0100 |
commit | 43c57bc73d491f9f2cb026217d3940444a72f862 (patch) | |
tree | b7796a534d73e23fa6fb9d82993a4f746834f6f8 | |
parent | 6ad390164945a6a570800c54a25219a29e305eda (diff) | |
download | plantagenet-43c57bc73d491f9f2cb026217d3940444a72f862.tar.gz |
Remove duplicate get_supply_from_source.
-rw-r--r-- | rules.js | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -4100,34 +4100,6 @@ function get_supply_from_source(source) { return prov } -function get_supply_from_source(source) { - let prov = 0 - - if (has_exhausted_marker(source)) { - return prov - } - - if ( - game.command === LORD_DEVON && - (game.where === LOC_EXETER || - game.where === LOC_LAUNCESTON || - game.where === LOC_PLYMOUTH || - game.where === LOC_WELLS || - game.where === LOC_ROCHESTER) - ) { - prov += 1 - } - - if (source === LOC_LONDON || source === LOC_CALAIS) { - prov += 3 - } else if (is_city(source)) { - prov += 2 - } - - prov += 1 - return prov -} - states.supply_source = { inactive: "Supply", prompt() { |