diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-02 15:39:31 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-05 20:46:48 +0200 |
commit | 084c4ed7f970d00af4349a01cba5093cef5e2ca2 (patch) | |
tree | 4266d3c522511764b775cbf33200f769ac44f07e /rules.js | |
parent | a3e2d6b2c7b22a516af59b2dc3df8f806c79d507 (diff) | |
download | time-of-crisis-084c4ed7f970d00af4349a01cba5093cef5e2ca2.tar.gz |
v2: military emperor
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -4734,8 +4734,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") + } + } } } |