diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-08-02 15:44:42 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-27 12:00:41 +0100 |
commit | f89bc059b1020312439f1bc50a70fff36730d81a (patch) | |
tree | 47313eebacf58e6ffe83423affd9f15f241a9a71 /rules.js | |
parent | f888b1d42b8495fed04475b0de26e527571a8edb (diff) | |
download | time-of-crisis-f89bc059b1020312439f1bc50a70fff36730d81a.tar.gz |
v2: playtest option
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -6,6 +6,8 @@ const states = {} const AUTO_PLAY_EVENTS = true +const DELUXE = 2 + const P1 = "Red" const P2 = "Blue" const P3 = "Yellow" @@ -463,6 +465,14 @@ function is_barbarian_leader(id) { return id === CNIVA || id === ARDASHIR || id === SHAPUR } +function is_classic() { + return game.v !== DELUXE +} + +function is_deluxe() { + return game.v === DELUXE +} + // === BOARD STATE === const BIT_AMPHITHEATER = 1 << 7 @@ -5524,6 +5534,12 @@ exports.setup = function (seed, scenario, options) { log_h1("Time of Crisis") + if (options.deluxe) { + log("Deluxe Edition PLAYTEST") + log_br() + game.v = DELUXE + } + if (options.emperor) { log("Emperor Rules.") log_br() |