summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-17 12:36:51 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-17 12:36:51 +0100
commit6d9e7659167202f17fd32a92fa499961428d100a (patch)
tree67dbe03f428f9da4f588e32c2eb1729e632e1a35 /rules.js
parent6887ec1303fcde23136f5de61e8c720cf9307071 (diff)
downloadalgeria-6d9e7659167202f17fd32a92fa499961428d100a.tar.gz
addendum about the Border Zone DRM
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 968f655..17c09c6 100644
--- a/rules.js
+++ b/rules.js
@@ -2566,14 +2566,20 @@ function give_fln_ap() {
log_br()
// The FLN PSL
- // He gets AP equal to 10% (round fractions up) of his current PSL, minus the number of French Naval Points.
- let psl_percentage = Math.ceil(0.10 * game.fln_psl)
- let psl_ap = Math.max(psl_percentage - game.naval, 0)
+ // FLN AP gain of 10% of PSL (round fractions up) reduced by BOTH the number of Naval Points AND the Border Zone DRM if it's Activated.
+ // (addendum about the Border Zone DRM: https://boardgamegeek.com/thread/3201531)
+ let psl_ap = Math.ceil(0.10 * game.fln_psl)
log_br()
- if (game.naval)
- log(`10% of ${game.fln_psl} PSL (- ${game.naval} Naval PTS)`)
- else
- log(`10% of ${game.fln_psl} PSL`)
+ log(`10% of ${game.fln_psl} PSL`)
+ if (game.naval) {
+ psl_ap = Math.max(psl_ap - game.naval, 0)
+ logi(`- ${game.naval} Naval PTS`)
+ }
+ if (game.border_zone_active && game.border_zone_drm) {
+ // border_zone_drm is negative
+ psl_ap = Math.max(psl_ap + game.border_zone_drm, 0)
+ logi(`- ${Math.abs(game.border_zone_drm)} Border Zone DRM`)
+ }
if (psl_ap) {
raise_fln_ap(psl_ap)
}