diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-12 14:27:24 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-12 14:27:24 +0200 |
commit | bd58c7d24791dc7360f380c9277b99dc9426be41 (patch) | |
tree | 3c00acc0d667b1c21dd676c602339fa90d51d7f2 | |
parent | 01c33f646a3b3487592f4426ccaf464cf8de7054 (diff) | |
download | algeria-bd58c7d24791dc7360f380c9277b99dc9426be41.tar.gz |
propaganda in france
-rw-r--r-- | rules.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2255,6 +2255,12 @@ states.fln_operations = { if (is_harass_unit(u)) view.actions.harass = 1 }) + if (game.fln_ap >= FLN_PROPAGANDA_COST) { + for_each_friendly_unit_in_loc(FRANCE, u => { + if (is_propaganda_unit(u)) + view.actions.propaganda = 1 + }) + } for_each_friendly_unit_in_locs([MOROCCO, TUNISIA], u => { if (is_mobile_unit(u) && unit_box(u) === OPS) view.actions.move = 1 @@ -2329,6 +2335,11 @@ states.fln_propaganda = { gen_action_unit(u) } }) + for_each_friendly_unit_in_loc(FRANCE, u => { + if (is_propaganda_unit(u)) { + gen_action_unit(u) + } + }) } else { view.prompt = "Propaganda: Execute mission" let first_unit = game.selected[0] |