diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-02 15:39:31 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-27 12:00:41 +0100 |
commit | ab72f6d38ccea89fef2ab0ce2863c6da60255917 (patch) | |
tree | 4add4f3d2f37487d14c8bf0be64a5d1dfcacf1f0 | |
parent | d8f66c8614a8313b3fe59759222c752b2c87e355 (diff) | |
download | time-of-crisis-ab72f6d38ccea89fef2ab0ce2863c6da60255917.tar.gz |
v2: military emperor
-rw-r--r-- | rules.js | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -4736,8 +4736,18 @@ function goto_post_combat() { function roll_military_emperor_check(n) { if (n > 0) { log_h3("Military Emperor") - if (roll_dice_no_reroll(n, 5) > 0) - eliminate_military_emperor(game.emperor - ARMY) + if (is_classic()) { + if (roll_dice_no_reroll(n, 5) > 0) + eliminate_military_emperor(game.emperor - ARMY) + } else { + let die = roll_die() + if (die + n >= 7) { + logi("B" + die + " + " + n + " \u2265 7") + eliminate_military_emperor(game.emperor - ARMY) + } else { + logi("W" + die + " + " + n + " < 7") + } + } } } |