summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/rules.js b/rules.js
index dc03703..1a36bea 100644
--- a/rules.js
+++ b/rules.js
@@ -3609,11 +3609,13 @@ states.recruit = {
for (let p of all_power_generals[game.power]) {
if (is_intro() && is_flanders_space(game.pos[p]))
continue
- if (is_piece_on_map(p))
+ if (is_piece_eliminated(p)) {
+ if (has_re_entry_space_for_general(p)) {
+ av_general += 1
+ av_troops += 8
+ }
+ } else {
av_troops += 8 - game.troops[p]
- else if (is_piece_eliminated(p) && has_re_entry_space_for_general(p)) {
- av_general += 1
- av_troops += 8
}
}
@@ -3645,10 +3647,13 @@ states.recruit = {
for (let p of all_power_generals[game.power]) {
if (is_intro() && is_flanders_space(game.pos[p]))
continue
- if (is_piece_on_map(p) && game.troops[p] > 0 && game.troops[p] < 8)
- gen_action_piece(p)
- else if (is_piece_eliminated(p) && has_re_entry_space_for_general(p))
- gen_action_piece(p)
+ if (is_piece_eliminated(p)) {
+ if (has_re_entry_space_for_general(p))
+ gen_action_piece(p)
+ } else {
+ if (game.troops[p] < 8)
+ gen_action_piece(p)
+ }
}
}
}