summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-02 15:39:31 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-05 20:46:48 +0200
commit084c4ed7f970d00af4349a01cba5093cef5e2ca2 (patch)
tree4266d3c522511764b775cbf33200f769ac44f07e /rules.js
parenta3e2d6b2c7b22a516af59b2dc3df8f806c79d507 (diff)
downloadtime-of-crisis-084c4ed7f970d00af4349a01cba5093cef5e2ca2.tar.gz
v2: military emperor
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 1f9a68c..57ec240 100644
--- a/rules.js
+++ b/rules.js
@@ -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")
+ }
+ }
}
}