From cf98c24a0633fddd953dc278087bc58132d8e554 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:51:34 +0200 Subject: write out MST and CRT. Fix: Shouldn't airmobilize units in OC --- rules.js | 6 +++--- 1 file 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 } -- cgit v1.2.3