summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-02 15:39:31 +0200
committerTor Andersson <tor@ccxvii.net>2024-10-27 12:00:41 +0100
commitab72f6d38ccea89fef2ab0ce2863c6da60255917 (patch)
tree4add4f3d2f37487d14c8bf0be64a5d1dfcacf1f0
parentd8f66c8614a8313b3fe59759222c752b2c87e355 (diff)
downloadtime-of-crisis-ab72f6d38ccea89fef2ab0ce2863c6da60255917.tar.gz
v2: military emperor
-rw-r--r--rules.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index a993763..ef64708 100644
--- a/rules.js
+++ b/rules.js
@@ -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")
+ }
+ }
}
}