summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-25 20:21:45 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commit1ceaeb49d886c35a70e8145995efed5b6ea45dac (patch)
treed87afe429d9b7bf75ffda2c3de85c44ecd6e169e
parent0e4abab197699be791514f7c0837e67052a4e79a (diff)
downloadfriedrich-1ceaeb49d886c35a70e8145995efed5b6ea45dac.tar.gz
Allow paying for multiple recruits at once
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 8d6a48f..4e69bee 100644
--- a/rules.js
+++ b/rules.js
@@ -2177,7 +2177,7 @@ states.recruit = {
prompt(str)
- if (game.count < cost && possible) {
+ if (possible && game.count / cost < av_troops + av_trains) {
for (let c of game.hand[game.power])
gen_action_card(c)
}