summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Nordine <tdnordine@gmail.com>2023-09-15 20:55:38 -0500
committerTor Andersson <tor@ccxvii.net>2023-12-10 18:16:55 +0100
commit56ade7e97960332844741153f39ed6abc05d839d (patch)
tree2ddc0de52909de0de6590655b6a7a7526e649765
parent4798920aaa2bbf247babda4a01c667d4c6179983 (diff)
downloadplantagenet-56ade7e97960332844741153f39ed6abc05d839d.tar.gz
Fix supply_tyoe choice issue.
-rw-r--r--rules.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index bfcd3d1..40d727f 100644
--- a/rules.js
+++ b/rules.js
@@ -3374,18 +3374,18 @@ states.select_supply_type = {
inactive: "Supply",
prompt() {
view.prompt = `Supply: ${game.count} from Stronghold or ${game.what} from Port?`
- gen_action("stronghold", game.count)
- gen_action("port", game.what)
+ view.actions.stronghold = 1
+ view.actions.port = 1
},
- stronghold(supply) {
+ stronghold() {
logi(`Stronghold at %${game.where}`)
- add_lord_assets(game.command, PROV, supply)
+ add_lord_assets(game.command, PROV, game.count)
deplete_locale(game.where)
end_select_supply_type()
},
- port(sea_supply) {
+ port() {
logi(`Seaport at %${game.where}`)
- add_lord_assets(game.command, PROV, sea_supply)
+ add_lord_assets(game.command, PROV, game.what)
end_select_supply_type()
}
}