summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-12 14:27:24 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-12 14:27:24 +0200
commitbd58c7d24791dc7360f380c9277b99dc9426be41 (patch)
tree3c00acc0d667b1c21dd676c602339fa90d51d7f2 /rules.js
parent01c33f646a3b3487592f4426ccaf464cf8de7054 (diff)
downloadalgeria-bd58c7d24791dc7360f380c9277b99dc9426be41.tar.gz
propaganda in france
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index ce0579a..ce92972 100644
--- a/rules.js
+++ b/rules.js
@@ -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]