summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-06 15:31:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit43c57bc73d491f9f2cb026217d3940444a72f862 (patch)
treeb7796a534d73e23fa6fb9d82993a4f746834f6f8
parent6ad390164945a6a570800c54a25219a29e305eda (diff)
downloadplantagenet-43c57bc73d491f9f2cb026217d3940444a72f862.tar.gz
Remove duplicate get_supply_from_source.
-rw-r--r--rules.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/rules.js b/rules.js
index f3e8800..164cf02 100644
--- a/rules.js
+++ b/rules.js
@@ -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() {