summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-26 20:51:34 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-26 20:51:34 +0200
commitcf98c24a0633fddd953dc278087bc58132d8e554 (patch)
tree098201b8c1c9df5142ef8003495b275779a61684 /rules.js
parent644292ba59a7338b22ee6bb11552178c79aadc84 (diff)
downloadalgeria-cf98c24a0633fddd953dc278087bc58132d8e554.tar.gz
write out MST and CRT. Fix: Shouldn't airmobilize units in OC
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 915d48f..79258a7 100644
--- a/rules.js
+++ b/rules.js
@@ -591,7 +591,7 @@ function is_algerian_unit(u) {
}
function can_airmobilize_unit(u) {
- return !is_unit_airmobile(u) && ([FR_X, EL_X, AL_X].includes(unit_type(u)))
+ return !is_unit_airmobile(u) && ([FR_X, EL_X, AL_X].includes(unit_type(u))) && [OPS, PTL].includes(unit_box(u))
}
function is_division_unit(u) {
@@ -5241,7 +5241,7 @@ function roll_mst(roll) {
let effect_str = ''
if (effect === '+') effect_str = ' (bad)'
if (effect === '@') effect_str = ' (good)'
- log(`MST: ${result}${effect}${effect_str}`)
+ log(`Mission Result ${result}${effect}${effect_str}`)
return [result, effect]
}
@@ -5268,7 +5268,7 @@ function combat_result(firepower, die) {
function roll_crt(firepower) {
let roll = roll_1d6()
let result = combat_result(firepower, roll)
- log(`CRT: ${result}`)
+ log(`Combat Result ${result}`)
return result
}