summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-14 15:12:03 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit1b3c32195d2741ac44aa35271b399c3fa2e6f2c2 (patch)
tree97a1c6b24aa2cdae40b1a872ae689e3e7fe98153 /rules.js
parent55eae227cb5eb04d03814137ebe6f6a13a93c92c (diff)
downloadtable-battles-1b3c32195d2741ac44aa35271b399c3fa2e6f2c2.tar.gz
Squeeze layout.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 3565d67..63730af 100644
--- a/rules.js
+++ b/rules.js
@@ -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