diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-14 15:12:03 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 1b3c32195d2741ac44aa35271b399c3fa2e6f2c2 (patch) | |
tree | 97a1c6b24aa2cdae40b1a872ae689e3e7fe98153 /rules.js | |
parent | 55eae227cb5eb04d03814137ebe6f6a13a93c92c (diff) | |
download | table-battles-1b3c32195d2741ac44aa35271b399c3fa2e6f2c2.tar.gz |
Squeeze layout.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -397,8 +397,14 @@ exports.setup = function (seed, scenario, options) { log(".h1 " + info.name) log(".h2 " + info.date) log("") + if (info.lore_text) { + for (let line of info.lore_text.split("<p>")) + log(line) + log("") + } if (info.rule_text) { - log(info.rule_text) + for (let line of info.rule_text.split("<p>")) + log(line) log("") } @@ -1578,6 +1584,7 @@ function require_two_pairs(c) { function check_cube_requirement(c, req) { switch (req) { case "3 cubes": + case "Three Cubes": return get_cubes(c) >= 3 case "Two Cubes": return get_cubes(c) >= 2 |