botc-character-sheet 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FancyDoc.d.ts.map +1 -1
- package/dist/components/BottomTrimSheet.d.ts +10 -0
- package/dist/components/BottomTrimSheet.d.ts.map +1 -0
- package/dist/components/PlayerCount.d.ts +4 -1
- package/dist/components/PlayerCount.d.ts.map +1 -1
- package/dist/components/PrintGuides.d.ts +7 -0
- package/dist/components/PrintGuides.d.ts.map +1 -0
- package/dist/components/PrintablePage.d.ts +9 -0
- package/dist/components/PrintablePage.d.ts.map +1 -0
- package/dist/index.js +720 -471
- package/dist/pages/CharacterSection.d.ts +13 -0
- package/dist/pages/CharacterSection.d.ts.map +1 -0
- package/dist/pages/CharacterSheet.d.ts +3 -2
- package/dist/pages/CharacterSheet.d.ts.map +1 -1
- package/dist/pages/InfoSheet.d.ts +23 -0
- package/dist/pages/InfoSheet.d.ts.map +1 -0
- package/dist/pages/NightSheet.d.ts +2 -7
- package/dist/pages/NightSheet.d.ts.map +1 -1
- package/dist/pages/SheetBack.d.ts +7 -1
- package/dist/pages/SheetBack.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +8 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { options as
|
|
2
|
-
var
|
|
3
|
-
function i
|
|
1
|
+
import { options as D, Fragment as f } from "preact";
|
|
2
|
+
var G = 0;
|
|
3
|
+
function e(i, t, a, r, n, h) {
|
|
4
4
|
t || (t = {});
|
|
5
|
-
var
|
|
6
|
-
if ("ref" in
|
|
7
|
-
var
|
|
8
|
-
if (typeof
|
|
9
|
-
return
|
|
5
|
+
var l, s, c = t;
|
|
6
|
+
if ("ref" in c) for (s in c = {}, t) s == "ref" ? l = t[s] : c[s] = t[s];
|
|
7
|
+
var o = { type: i, props: c, key: a, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --G, __i: -1, __u: 0, __source: n, __self: h };
|
|
8
|
+
if (typeof i == "function" && (l = i.defaultProps)) for (s in l) c[s] === void 0 && (c[s] = l[s]);
|
|
9
|
+
return D.vnode && D.vnode(o), o;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
11
|
+
function $(i) {
|
|
12
|
+
if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((n) => n + n).join("")), i.length !== 6)
|
|
13
13
|
throw new Error("Invalid HEX color.");
|
|
14
|
-
const t = parseInt(
|
|
14
|
+
const t = parseInt(i.slice(0, 2), 16), a = parseInt(i.slice(2, 4), 16), r = parseInt(i.slice(4, 6), 16);
|
|
15
15
|
return [t, a, r];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function V(i, t, a) {
|
|
18
18
|
const r = (n) => {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
19
|
+
const h = n.toString(16);
|
|
20
|
+
return h.length === 1 ? "0" + h : h;
|
|
21
21
|
};
|
|
22
|
-
return `#${r(
|
|
22
|
+
return `#${r(i)}${r(t)}${r(a)}`;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const [a, r, n] =
|
|
26
|
-
return
|
|
24
|
+
function F(i, t) {
|
|
25
|
+
const [a, r, n] = $(i), h = Math.round(a * t), l = Math.round(r * t), s = Math.round(n * t);
|
|
26
|
+
return V(h, l, s);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const v = {
|
|
29
29
|
townsfolk: "#00469e",
|
|
30
30
|
outsider: "#00469e",
|
|
31
31
|
minion: "#580709",
|
|
@@ -34,140 +34,140 @@ const b = {
|
|
|
34
34
|
traveller: "#390758ff",
|
|
35
35
|
loric: "#1f5807"
|
|
36
36
|
};
|
|
37
|
-
function
|
|
38
|
-
return Array.isArray(
|
|
37
|
+
function M(i) {
|
|
38
|
+
return Array.isArray(i) ? i : [i];
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
if (
|
|
40
|
+
function C(i, t = 20) {
|
|
41
|
+
if (i.length === 0)
|
|
42
42
|
return "transparent";
|
|
43
|
-
if (
|
|
44
|
-
const r =
|
|
45
|
-
return `linear-gradient(${t}deg, ${
|
|
43
|
+
if (i.length === 1) {
|
|
44
|
+
const r = F(i[0], 0.4);
|
|
45
|
+
return `linear-gradient(${t}deg, ${i[0]} 50%, ${r})`;
|
|
46
46
|
}
|
|
47
|
-
const a =
|
|
48
|
-
const
|
|
49
|
-
return `${r} ${
|
|
47
|
+
const a = i.map((r, n) => {
|
|
48
|
+
const h = n / (i.length - 1) * 100;
|
|
49
|
+
return `${r} ${h}%`;
|
|
50
50
|
}).join(", ");
|
|
51
51
|
return `linear-gradient(${t}deg, ${a})`;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const a =
|
|
53
|
+
function J(i, t = 90) {
|
|
54
|
+
const a = M(i);
|
|
55
55
|
if (a.length === 1)
|
|
56
56
|
return a[0];
|
|
57
|
-
const r = a.map((n,
|
|
58
|
-
const
|
|
59
|
-
return `${n} ${
|
|
57
|
+
const r = a.map((n, h) => {
|
|
58
|
+
const l = h / (a.length - 1) * 100;
|
|
59
|
+
return `${n} ${l}%`;
|
|
60
60
|
}).join(", ");
|
|
61
61
|
return `linear-gradient(${t}deg, ${r})`;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
jinxes:
|
|
63
|
+
function U({
|
|
64
|
+
jinxes: i,
|
|
65
65
|
allCharacters: t,
|
|
66
66
|
fabledAndLoric: a,
|
|
67
67
|
bootleggerRules: r
|
|
68
68
|
}) {
|
|
69
69
|
const n = new Map(
|
|
70
70
|
t.map((m) => [m.id.toLowerCase(), m])
|
|
71
|
-
),
|
|
72
|
-
let
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
), h = i.length > 0 && a.length > 0, l = i.length > 0 && a.length === 0, s = i.length === 0 && a.length > 0, c = [...i, ...a], o = h || i.length > 4 || a.length > 4, d = o ? Math.ceil(c.length / 2) : c.length;
|
|
72
|
+
let g, y;
|
|
73
|
+
if (h)
|
|
74
|
+
g = i.map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `lc-${u}`)), y = a.map((m, u) => /* @__PURE__ */ e(
|
|
75
|
+
I,
|
|
76
76
|
{
|
|
77
77
|
item: m,
|
|
78
78
|
bootleggerRules: r
|
|
79
79
|
},
|
|
80
|
-
`rc-${
|
|
80
|
+
`rc-${u}`
|
|
81
81
|
));
|
|
82
|
-
else if (
|
|
83
|
-
|
|
84
|
-
else if (
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
else if (l && o)
|
|
83
|
+
g = i.slice(0, d).map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `lc-${u}`)), y = i.slice(d).map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `rc-${u}`));
|
|
84
|
+
else if (s && o)
|
|
85
|
+
g = a.slice(0, d).map((m, u) => /* @__PURE__ */ e(
|
|
86
|
+
I,
|
|
87
87
|
{
|
|
88
88
|
item: m,
|
|
89
89
|
bootleggerRules: r
|
|
90
90
|
},
|
|
91
|
-
`lc-${
|
|
92
|
-
)),
|
|
93
|
-
|
|
91
|
+
`lc-${u}`
|
|
92
|
+
)), y = a.slice(d).map((m, u) => /* @__PURE__ */ e(
|
|
93
|
+
I,
|
|
94
94
|
{
|
|
95
95
|
item: m,
|
|
96
96
|
bootleggerRules: r
|
|
97
97
|
},
|
|
98
|
-
`rc-${
|
|
98
|
+
`rc-${u}`
|
|
99
99
|
));
|
|
100
|
-
else if (
|
|
101
|
-
|
|
102
|
-
else if (
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
else if (l)
|
|
101
|
+
g = i.map((m, u) => /* @__PURE__ */ e(w, { jinx: m, charMap: n }, `lc-${u}`));
|
|
102
|
+
else if (s)
|
|
103
|
+
g = a.map((m, u) => /* @__PURE__ */ e(
|
|
104
|
+
I,
|
|
105
105
|
{
|
|
106
106
|
item: m,
|
|
107
107
|
bootleggerRules: r
|
|
108
108
|
},
|
|
109
|
-
`lc-${
|
|
109
|
+
`lc-${u}`
|
|
110
110
|
));
|
|
111
111
|
else
|
|
112
112
|
return null;
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
...
|
|
113
|
+
return /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
|
|
114
|
+
/* @__PURE__ */ e("h2", { className: "section-title" }),
|
|
115
|
+
y ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
|
|
116
|
+
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
117
|
+
...g
|
|
118
118
|
] }),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
...
|
|
119
|
+
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
120
|
+
...y
|
|
121
121
|
] })
|
|
122
|
-
] }) : /* @__PURE__ */
|
|
123
|
-
...
|
|
122
|
+
] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: [
|
|
123
|
+
...g
|
|
124
124
|
] })
|
|
125
125
|
] });
|
|
126
126
|
}
|
|
127
|
-
const
|
|
128
|
-
const a =
|
|
129
|
-
return /* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
a && /* @__PURE__ */
|
|
127
|
+
const w = ({ charMap: i, jinx: t }) => {
|
|
128
|
+
const a = i.get(t.characters[0]), r = i.get(t.characters[1]);
|
|
129
|
+
return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
|
|
130
|
+
/* @__PURE__ */ e("div", { className: "jinx-icons", children: [
|
|
131
|
+
a && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: k(a) ? /* @__PURE__ */ e(
|
|
132
132
|
"img",
|
|
133
133
|
{
|
|
134
|
-
src:
|
|
134
|
+
src: k(a),
|
|
135
135
|
alt: a.name,
|
|
136
136
|
className: "jinx-icon"
|
|
137
137
|
}
|
|
138
|
-
) : /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
r && /* @__PURE__ */
|
|
138
|
+
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: a.name.charAt(0) }) }),
|
|
139
|
+
/* @__PURE__ */ e("span", { className: "jinx-divider" }),
|
|
140
|
+
r && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: k(r) ? /* @__PURE__ */ e(
|
|
141
141
|
"img",
|
|
142
142
|
{
|
|
143
|
-
src:
|
|
143
|
+
src: k(r),
|
|
144
144
|
alt: r.name,
|
|
145
145
|
className: "jinx-icon"
|
|
146
146
|
}
|
|
147
|
-
) : /* @__PURE__ */
|
|
147
|
+
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: r.name.charAt(0) }) })
|
|
148
148
|
] }),
|
|
149
|
-
/* @__PURE__ */
|
|
149
|
+
/* @__PURE__ */ e("p", { className: "jinx-text", children: t.jinx })
|
|
150
150
|
] });
|
|
151
151
|
};
|
|
152
|
-
function
|
|
153
|
-
item:
|
|
152
|
+
function I({
|
|
153
|
+
item: i,
|
|
154
154
|
bootleggerRules: t
|
|
155
155
|
}) {
|
|
156
|
-
const a =
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
a && t.map((r, n) => /* @__PURE__ */
|
|
156
|
+
const a = i.name.toLowerCase() === "bootlegger";
|
|
157
|
+
return /* @__PURE__ */ e("div", { className: "jinx-item loric", children: [
|
|
158
|
+
/* @__PURE__ */ e("div", { className: "loric-spacer" }),
|
|
159
|
+
i.image ? /* @__PURE__ */ e("img", { src: i.image, alt: i.name, className: "jinx-icon loric" }) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: i.name.charAt(0) }),
|
|
160
|
+
/* @__PURE__ */ e("div", { className: "loric-text-container", children: [
|
|
161
|
+
/* @__PURE__ */ e("p", { className: "jinx-text loric-name", children: i.name }),
|
|
162
|
+
/* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: i.note }),
|
|
163
|
+
a && t.map((r, n) => /* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: r }, `bootlegger-rule-${n}`))
|
|
164
164
|
] })
|
|
165
165
|
] });
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
return
|
|
167
|
+
function k(i) {
|
|
168
|
+
return i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const Z = [
|
|
171
171
|
{
|
|
172
172
|
characters: [
|
|
173
173
|
"alchemist",
|
|
@@ -1146,7 +1146,7 @@ const G = [
|
|
|
1146
1146
|
oldJinx: "If the Exorcist chooses the Yaggababble, the Yaggababble ability does not kill tonight."
|
|
1147
1147
|
}
|
|
1148
1148
|
];
|
|
1149
|
-
function
|
|
1149
|
+
function Y(i) {
|
|
1150
1150
|
const t = {
|
|
1151
1151
|
townsfolk: [],
|
|
1152
1152
|
outsider: [],
|
|
@@ -1156,7 +1156,7 @@ function $(e) {
|
|
|
1156
1156
|
fabled: [],
|
|
1157
1157
|
loric: []
|
|
1158
1158
|
};
|
|
1159
|
-
for (const a of
|
|
1159
|
+
for (const a of i)
|
|
1160
1160
|
try {
|
|
1161
1161
|
t[a.team].push(a);
|
|
1162
1162
|
} catch {
|
|
@@ -1164,11 +1164,11 @@ function $(e) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
return t;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
const a = new Set(
|
|
1169
|
-
for (const n of
|
|
1170
|
-
const [
|
|
1171
|
-
a.has(
|
|
1167
|
+
function K(i, t = !1) {
|
|
1168
|
+
const a = new Set(i.map((n) => n.id.toLowerCase())), r = [];
|
|
1169
|
+
for (const n of Z) {
|
|
1170
|
+
const [h, l] = n.characters;
|
|
1171
|
+
a.has(h) && a.has(l) && (t && n.oldJinx ? r.push({
|
|
1172
1172
|
characters: n.characters,
|
|
1173
1173
|
jinx: n.oldJinx
|
|
1174
1174
|
}) : r.push({
|
|
@@ -1176,174 +1176,413 @@ function V(e, t = !1) {
|
|
|
1176
1176
|
jinx: n.jinx
|
|
1177
1177
|
}));
|
|
1178
1178
|
}
|
|
1179
|
-
for (const n of
|
|
1180
|
-
const
|
|
1181
|
-
if (!
|
|
1179
|
+
for (const n of i) {
|
|
1180
|
+
const h = typeof n == "object" && n !== null, l = "jinxes" in n;
|
|
1181
|
+
if (!h || !l) continue;
|
|
1182
1182
|
console.log("char.jinxes:", n.jinxes);
|
|
1183
|
-
const
|
|
1184
|
-
if (a.has(
|
|
1185
|
-
for (const
|
|
1186
|
-
const d =
|
|
1183
|
+
const s = n, c = s.id.toLowerCase();
|
|
1184
|
+
if (a.has(c) && s.jinxes)
|
|
1185
|
+
for (const o of s.jinxes) {
|
|
1186
|
+
const d = o.id.toLowerCase();
|
|
1187
1187
|
if (console.log(`${n.id} is jinxed with ${d}`), a.has(d) || (console.log("characterIds doesnt contain charId", d), console.log("characterIds:", a)), a.has(d)) {
|
|
1188
|
-
const
|
|
1189
|
-
(
|
|
1188
|
+
const g = r.some(
|
|
1189
|
+
(y) => y.characters[0] === c && y.characters[1] === d || y.characters[0] === d && y.characters[1] === c
|
|
1190
1190
|
);
|
|
1191
|
-
console.log("Jinx already exists:",
|
|
1192
|
-
characters: [
|
|
1193
|
-
jinx:
|
|
1191
|
+
console.log("Jinx already exists:", g), g || r.push({
|
|
1192
|
+
characters: [c, d],
|
|
1193
|
+
jinx: o.reason
|
|
1194
1194
|
});
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
return r;
|
|
1199
1199
|
}
|
|
1200
|
-
const
|
|
1201
|
-
function
|
|
1200
|
+
const T = (i) => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
|
|
1201
|
+
function O(i, t, a) {
|
|
1202
1202
|
const r = [];
|
|
1203
1203
|
return t.forEach((n) => {
|
|
1204
|
-
n.characters[0] ===
|
|
1204
|
+
n.characters[0] === i.id ? r.push(n.characters[1]) : n.characters[1] === i.id && r.push(n.characters[0]);
|
|
1205
1205
|
}), a.filter(
|
|
1206
1206
|
(n) => r.includes(n.id)
|
|
1207
1207
|
);
|
|
1208
1208
|
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
const _ = 8;
|
|
1210
|
+
function q({
|
|
1211
|
+
title: i,
|
|
1212
|
+
characters: t,
|
|
1213
|
+
charNameColor: a,
|
|
1214
|
+
iconScale: r,
|
|
1215
|
+
jinxes: n,
|
|
1216
|
+
allCharacters: h,
|
|
1217
|
+
inlineJinxIcons: l
|
|
1218
|
+
}) {
|
|
1219
|
+
const s = t.length > _ ? "space-between" : t.length % 2 === 0 ? "space-around" : "flex-start", c = X(t);
|
|
1220
|
+
return /* @__PURE__ */ e("div", { className: "character-section", children: [
|
|
1221
|
+
/* @__PURE__ */ e("h2", { className: "section-title", children: i }),
|
|
1222
|
+
/* @__PURE__ */ e("div", { className: "character-list", children: [
|
|
1223
|
+
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: s }, children: t.slice(0, c).map((o) => /* @__PURE__ */ e(
|
|
1224
|
+
A,
|
|
1225
|
+
{
|
|
1226
|
+
character: o,
|
|
1227
|
+
color: a,
|
|
1228
|
+
iconScale: r,
|
|
1229
|
+
jinxedCharacters: O(o, n, h),
|
|
1230
|
+
inlineJinxIcons: l
|
|
1231
|
+
},
|
|
1232
|
+
o.id
|
|
1233
|
+
)) }),
|
|
1234
|
+
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: s }, children: t.slice(c, t.length).map((o) => /* @__PURE__ */ e(
|
|
1235
|
+
A,
|
|
1236
|
+
{
|
|
1237
|
+
character: o,
|
|
1238
|
+
color: a,
|
|
1239
|
+
iconScale: r,
|
|
1240
|
+
jinxedCharacters: O(o, n, h),
|
|
1241
|
+
inlineJinxIcons: l
|
|
1242
|
+
},
|
|
1243
|
+
o.id
|
|
1244
|
+
)) })
|
|
1245
|
+
] })
|
|
1246
|
+
] });
|
|
1247
|
+
}
|
|
1248
|
+
function A({
|
|
1249
|
+
character: i,
|
|
1250
|
+
color: t,
|
|
1251
|
+
iconScale: a,
|
|
1252
|
+
jinxedCharacters: r,
|
|
1253
|
+
inlineJinxIcons: n
|
|
1254
|
+
}) {
|
|
1255
|
+
const h = (s) => {
|
|
1256
|
+
const c = s.match(/^(.*?)(\[.*?\])$/);
|
|
1257
|
+
if (c) {
|
|
1258
|
+
const [, o, d] = c;
|
|
1259
|
+
return /* @__PURE__ */ e(f, { children: [
|
|
1260
|
+
o,
|
|
1261
|
+
/* @__PURE__ */ e("strong", { className: "setup-ability", children: d })
|
|
1262
|
+
] });
|
|
1263
|
+
}
|
|
1264
|
+
return s;
|
|
1265
|
+
}, l = T(i);
|
|
1266
|
+
return /* @__PURE__ */ e("div", { className: "character-card", children: [
|
|
1267
|
+
/* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: l ? /* @__PURE__ */ e(
|
|
1268
|
+
"img",
|
|
1269
|
+
{
|
|
1270
|
+
src: l,
|
|
1271
|
+
alt: i.name,
|
|
1272
|
+
className: "character-icon",
|
|
1273
|
+
style: { scale: a.toString() }
|
|
1274
|
+
}
|
|
1275
|
+
) : /* @__PURE__ */ e(
|
|
1276
|
+
"div",
|
|
1277
|
+
{
|
|
1278
|
+
className: "character-icon-placeholder",
|
|
1279
|
+
style: { color: t, scale: a.toString() },
|
|
1280
|
+
children: i.name.charAt(0)
|
|
1281
|
+
}
|
|
1282
|
+
) }),
|
|
1283
|
+
/* @__PURE__ */ e("div", { className: "character-info", children: [
|
|
1284
|
+
/* @__PURE__ */ e("h3", { className: "character-name", style: { color: t }, children: [
|
|
1285
|
+
i.name,
|
|
1286
|
+
n && r.length > 0 && /* @__PURE__ */ e("span", { className: "inline-jinx-icons", children: r.map((s) => {
|
|
1287
|
+
const c = T(s);
|
|
1288
|
+
return c ? /* @__PURE__ */ e(
|
|
1289
|
+
"img",
|
|
1290
|
+
{
|
|
1291
|
+
src: c,
|
|
1292
|
+
alt: s.name,
|
|
1293
|
+
className: "inline-jinx-icon",
|
|
1294
|
+
title: `Jinxed with ${s.name}`
|
|
1295
|
+
},
|
|
1296
|
+
s.id
|
|
1297
|
+
) : /* @__PURE__ */ e(
|
|
1298
|
+
"span",
|
|
1299
|
+
{
|
|
1300
|
+
className: "inline-jinx-icon-placeholder",
|
|
1301
|
+
title: `Jinxed with ${s.name}`,
|
|
1302
|
+
children: s.name.charAt(0)
|
|
1303
|
+
},
|
|
1304
|
+
s.id
|
|
1305
|
+
);
|
|
1306
|
+
}) })
|
|
1307
|
+
] }),
|
|
1308
|
+
/* @__PURE__ */ e("p", { className: "character-ability", children: h(i.ability) })
|
|
1309
|
+
] })
|
|
1310
|
+
] });
|
|
1311
|
+
}
|
|
1312
|
+
function X(i) {
|
|
1313
|
+
const t = Math.ceil(i.length / 2);
|
|
1314
|
+
if (i.length % 2 === 0 || i.length <= _)
|
|
1315
|
+
return t;
|
|
1316
|
+
const a = t, r = t - 1, n = i.slice(0, a), h = i.slice(r - 1), l = n.reduce(
|
|
1317
|
+
(c, o) => c + o.ability.length,
|
|
1318
|
+
0
|
|
1319
|
+
), s = h.reduce(
|
|
1320
|
+
(c, o) => c + o.ability.length,
|
|
1321
|
+
0
|
|
1322
|
+
);
|
|
1323
|
+
return l < s ? a : r;
|
|
1324
|
+
}
|
|
1325
|
+
const Q = {
|
|
1326
|
+
"top-left": 0,
|
|
1327
|
+
"top-right": 90,
|
|
1328
|
+
"bottom-right": 180,
|
|
1329
|
+
"bottom-left": 270
|
|
1330
|
+
}, ee = 20, ie = 2.5, N = ({ dimensions: i, position: t }) => {
|
|
1331
|
+
const a = Q[t], r = ee * 10, n = i.margin * 10, h = (i.margin + i.bleed) * 10, l = ie, s = {
|
|
1332
|
+
left: t.includes("left") ? 0 : void 0,
|
|
1333
|
+
right: t.includes("right") ? 0 : void 0,
|
|
1334
|
+
top: t.includes("top") ? 0 : void 0,
|
|
1335
|
+
bottom: t.includes("bottom") ? 0 : void 0
|
|
1336
|
+
};
|
|
1337
|
+
return /* @__PURE__ */ e(
|
|
1338
|
+
"div",
|
|
1339
|
+
{
|
|
1340
|
+
className: "print-guides-overlay",
|
|
1341
|
+
style: { rotate: `${a}deg`, ...s },
|
|
1342
|
+
children: /* @__PURE__ */ e(
|
|
1343
|
+
"svg",
|
|
1344
|
+
{
|
|
1345
|
+
viewBox: `0 0 ${r} ${r}`,
|
|
1346
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1347
|
+
children: [
|
|
1348
|
+
/* @__PURE__ */ e(
|
|
1349
|
+
P,
|
|
1350
|
+
{
|
|
1351
|
+
x1: h,
|
|
1352
|
+
y1: "0",
|
|
1353
|
+
x2: h,
|
|
1354
|
+
y2: n + i.bleed * 10 / 2,
|
|
1355
|
+
stroke: "black",
|
|
1356
|
+
"stroke-width": l,
|
|
1357
|
+
thickWidth: l * 2
|
|
1358
|
+
}
|
|
1359
|
+
),
|
|
1360
|
+
/* @__PURE__ */ e(
|
|
1361
|
+
P,
|
|
1362
|
+
{
|
|
1363
|
+
x1: "0",
|
|
1364
|
+
y1: h,
|
|
1365
|
+
x2: n + i.bleed * 10 / 2,
|
|
1366
|
+
y2: h,
|
|
1367
|
+
stroke: "black",
|
|
1368
|
+
"stroke-width": l,
|
|
1369
|
+
thickWidth: l * 2
|
|
1370
|
+
}
|
|
1371
|
+
),
|
|
1372
|
+
/* @__PURE__ */ e(
|
|
1373
|
+
"line",
|
|
1374
|
+
{
|
|
1375
|
+
x1: n,
|
|
1376
|
+
y1: n,
|
|
1377
|
+
x2: "0",
|
|
1378
|
+
y2: n,
|
|
1379
|
+
stroke: "black",
|
|
1380
|
+
"stroke-width": l,
|
|
1381
|
+
"stroke-dasharray": "2,2"
|
|
1382
|
+
}
|
|
1383
|
+
),
|
|
1384
|
+
/* @__PURE__ */ e(
|
|
1385
|
+
"line",
|
|
1386
|
+
{
|
|
1387
|
+
x1: n,
|
|
1388
|
+
y1: n,
|
|
1389
|
+
x2: n,
|
|
1390
|
+
y2: "0",
|
|
1391
|
+
stroke: "black",
|
|
1392
|
+
"stroke-width": l,
|
|
1393
|
+
"stroke-dasharray": "2,2"
|
|
1394
|
+
}
|
|
1395
|
+
)
|
|
1396
|
+
]
|
|
1397
|
+
}
|
|
1398
|
+
)
|
|
1399
|
+
}
|
|
1400
|
+
);
|
|
1401
|
+
};
|
|
1402
|
+
function P(i) {
|
|
1403
|
+
return /* @__PURE__ */ e(f, { children: [
|
|
1404
|
+
/* @__PURE__ */ e("line", { ...i, stroke: "#eee", "stroke-width": i.thickWidth }),
|
|
1405
|
+
/* @__PURE__ */ e("line", { ...i })
|
|
1406
|
+
] });
|
|
1407
|
+
}
|
|
1408
|
+
const te = 20, L = (i) => {
|
|
1409
|
+
const { margin: t, bleed: a, width: r, height: n } = i.dimensions;
|
|
1410
|
+
return /* @__PURE__ */ e(
|
|
1411
|
+
"div",
|
|
1412
|
+
{
|
|
1413
|
+
className: "printable-page",
|
|
1414
|
+
style: {
|
|
1415
|
+
"--page-width": r + "mm",
|
|
1416
|
+
"--page-height": n + "mm",
|
|
1417
|
+
"--print-margin": t + "mm",
|
|
1418
|
+
"--print-bleed": a + "mm",
|
|
1419
|
+
"--print-guide-size": te + "mm"
|
|
1420
|
+
},
|
|
1421
|
+
children: [
|
|
1422
|
+
i.children,
|
|
1423
|
+
(t > 0 || a > 0) && /* @__PURE__ */ e(f, { children: [
|
|
1424
|
+
/* @__PURE__ */ e(N, { dimensions: i.dimensions, position: "top-left" }),
|
|
1425
|
+
/* @__PURE__ */ e(N, { dimensions: i.dimensions, position: "top-right" }),
|
|
1426
|
+
/* @__PURE__ */ e(N, { dimensions: i.dimensions, position: "bottom-left" }),
|
|
1427
|
+
/* @__PURE__ */ e(
|
|
1428
|
+
N,
|
|
1429
|
+
{
|
|
1430
|
+
dimensions: i.dimensions,
|
|
1431
|
+
position: "bottom-right"
|
|
1432
|
+
}
|
|
1433
|
+
)
|
|
1434
|
+
] })
|
|
1435
|
+
]
|
|
1436
|
+
}
|
|
1437
|
+
);
|
|
1438
|
+
}, ae = {
|
|
1439
|
+
width: 210,
|
|
1440
|
+
height: 297,
|
|
1441
|
+
margin: 0,
|
|
1442
|
+
bleed: 0
|
|
1443
|
+
};
|
|
1444
|
+
function ne({
|
|
1445
|
+
title: i,
|
|
1211
1446
|
author: t,
|
|
1212
1447
|
characters: a,
|
|
1213
|
-
|
|
1214
|
-
|
|
1448
|
+
dimensions: r = ae,
|
|
1449
|
+
color: n = "#4a5568",
|
|
1450
|
+
jinxes: h = [],
|
|
1215
1451
|
showSwirls: l = !0,
|
|
1216
|
-
includeMargins:
|
|
1217
|
-
solidTitle:
|
|
1218
|
-
iconScale:
|
|
1219
|
-
appearance:
|
|
1220
|
-
fabledOrLoric:
|
|
1452
|
+
includeMargins: s = !1,
|
|
1453
|
+
solidTitle: c = !1,
|
|
1454
|
+
iconScale: o = 1.6,
|
|
1455
|
+
appearance: d = "normal",
|
|
1456
|
+
fabledOrLoric: g = [],
|
|
1221
1457
|
inlineJinxIcons: y = !1,
|
|
1222
|
-
bootleggerRules:
|
|
1458
|
+
bootleggerRules: m = []
|
|
1223
1459
|
}) {
|
|
1224
|
-
const
|
|
1460
|
+
const u = [
|
|
1225
1461
|
{
|
|
1226
1462
|
key: "townsfolk",
|
|
1227
1463
|
title: "Townsfolk",
|
|
1228
1464
|
chars: a.townsfolk,
|
|
1229
|
-
color:
|
|
1465
|
+
color: v.townsfolk
|
|
1230
1466
|
},
|
|
1231
1467
|
{
|
|
1232
1468
|
key: "outsider",
|
|
1233
1469
|
title: "Outsiders",
|
|
1234
1470
|
chars: a.outsider,
|
|
1235
|
-
color:
|
|
1471
|
+
color: v.outsider
|
|
1236
1472
|
},
|
|
1237
1473
|
{
|
|
1238
1474
|
key: "minion",
|
|
1239
1475
|
title: "Minions",
|
|
1240
1476
|
chars: a.minion,
|
|
1241
|
-
color:
|
|
1477
|
+
color: v.minion
|
|
1242
1478
|
},
|
|
1243
1479
|
{
|
|
1244
1480
|
key: "demon",
|
|
1245
1481
|
title: "Demons",
|
|
1246
1482
|
chars: a.demon,
|
|
1247
|
-
color:
|
|
1483
|
+
color: v.demon
|
|
1248
1484
|
}
|
|
1249
|
-
].filter((
|
|
1250
|
-
return /* @__PURE__ */
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
className: "character-sheet-background",
|
|
1264
|
-
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
1265
|
-
}
|
|
1266
|
-
),
|
|
1267
|
-
/* @__PURE__ */ i(Y, { color: r }),
|
|
1268
|
-
/* @__PURE__ */ i("div", { className: "sheet-content", children: [
|
|
1269
|
-
/* @__PURE__ */ i(
|
|
1270
|
-
U,
|
|
1485
|
+
].filter((b) => b.chars.length > 0), x = M(n), H = C(x, 20), R = ["character-sheet", d !== "normal" ? `appearance-${d}` : ""].filter(Boolean).join(" ");
|
|
1486
|
+
return /* @__PURE__ */ e(L, { dimensions: r, children: [
|
|
1487
|
+
/* @__PURE__ */ e(
|
|
1488
|
+
"div",
|
|
1489
|
+
{
|
|
1490
|
+
className: R,
|
|
1491
|
+
id: "character-sheet",
|
|
1492
|
+
style: {
|
|
1493
|
+
"--header-gradient": H,
|
|
1494
|
+
transform: s ? "scale(0.952)" : void 0
|
|
1495
|
+
},
|
|
1496
|
+
children: [
|
|
1497
|
+
/* @__PURE__ */ e(
|
|
1498
|
+
"img",
|
|
1271
1499
|
{
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
author: t,
|
|
1275
|
-
solidHeader: o
|
|
1500
|
+
className: "character-sheet-background",
|
|
1501
|
+
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
1276
1502
|
}
|
|
1277
1503
|
),
|
|
1278
|
-
/* @__PURE__ */
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1504
|
+
/* @__PURE__ */ e(oe, { color: n }),
|
|
1505
|
+
/* @__PURE__ */ e("div", { className: "sheet-content", children: [
|
|
1506
|
+
/* @__PURE__ */ e(
|
|
1507
|
+
re,
|
|
1508
|
+
{
|
|
1509
|
+
showSwirls: l,
|
|
1510
|
+
title: i,
|
|
1511
|
+
author: t,
|
|
1512
|
+
solidHeader: c
|
|
1513
|
+
}
|
|
1514
|
+
),
|
|
1515
|
+
/* @__PURE__ */ e("div", { className: "characters-grid", children: [
|
|
1516
|
+
u.map((b, B) => /* @__PURE__ */ e(f, { children: [
|
|
1517
|
+
/* @__PURE__ */ e(
|
|
1518
|
+
q,
|
|
1519
|
+
{
|
|
1520
|
+
title: b.title.toUpperCase(),
|
|
1521
|
+
characters: b.chars,
|
|
1522
|
+
charNameColor: b.color,
|
|
1523
|
+
iconScale: o,
|
|
1524
|
+
jinxes: h,
|
|
1525
|
+
allCharacters: [
|
|
1526
|
+
...a.townsfolk,
|
|
1527
|
+
...a.outsider,
|
|
1528
|
+
...a.minion,
|
|
1529
|
+
...a.demon
|
|
1530
|
+
],
|
|
1531
|
+
inlineJinxIcons: y
|
|
1532
|
+
},
|
|
1533
|
+
b.key
|
|
1534
|
+
),
|
|
1535
|
+
B < u.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
|
|
1536
|
+
] })),
|
|
1537
|
+
(h.length > 0 || g.length > 0) && /* @__PURE__ */ e(f, { children: [
|
|
1538
|
+
/* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" }),
|
|
1539
|
+
/* @__PURE__ */ e(
|
|
1540
|
+
U,
|
|
1541
|
+
{
|
|
1542
|
+
fabledAndLoric: g,
|
|
1543
|
+
jinxes: h,
|
|
1544
|
+
allCharacters: [
|
|
1545
|
+
...a.townsfolk,
|
|
1546
|
+
...a.outsider,
|
|
1547
|
+
...a.minion,
|
|
1548
|
+
...a.demon
|
|
1549
|
+
],
|
|
1550
|
+
bootleggerRules: m
|
|
1551
|
+
}
|
|
1552
|
+
)
|
|
1553
|
+
] })
|
|
1554
|
+
] }),
|
|
1555
|
+
/* @__PURE__ */ e("div", { className: "sheet-footer", children: [
|
|
1556
|
+
/* @__PURE__ */ e("span", { className: "asterisk", children: "*" }),
|
|
1557
|
+
"Not the first night"
|
|
1316
1558
|
] })
|
|
1317
1559
|
] }),
|
|
1318
|
-
/* @__PURE__ */
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
"
|
|
1560
|
+
/* @__PURE__ */ e("div", { className: "author-credit", children: [
|
|
1561
|
+
/* @__PURE__ */ e("p", { children: "© Steven Medway bloodontheclocktower.com" }),
|
|
1562
|
+
/* @__PURE__ */ e("p", { children: "Script template by John Forster ravenswoodstudio.xyz" })
|
|
1321
1563
|
] })
|
|
1322
|
-
]
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
]
|
|
1328
|
-
}
|
|
1329
|
-
);
|
|
1564
|
+
]
|
|
1565
|
+
}
|
|
1566
|
+
),
|
|
1567
|
+
" "
|
|
1568
|
+
] });
|
|
1330
1569
|
}
|
|
1331
|
-
function
|
|
1332
|
-
showSwirls:
|
|
1570
|
+
function re({
|
|
1571
|
+
showSwirls: i,
|
|
1333
1572
|
title: t,
|
|
1334
1573
|
author: a,
|
|
1335
1574
|
solidHeader: r = !1
|
|
1336
1575
|
}) {
|
|
1337
|
-
return /* @__PURE__ */
|
|
1338
|
-
/* @__PURE__ */
|
|
1339
|
-
|
|
1576
|
+
return /* @__PURE__ */ e(f, { children: [
|
|
1577
|
+
/* @__PURE__ */ e("h1", { className: "sheet-header", children: [
|
|
1578
|
+
i && /* @__PURE__ */ e(
|
|
1340
1579
|
"img",
|
|
1341
1580
|
{
|
|
1342
1581
|
src: "/images/black-swirl-divider.png",
|
|
1343
1582
|
className: "swirl-divider"
|
|
1344
1583
|
}
|
|
1345
1584
|
),
|
|
1346
|
-
/* @__PURE__ */
|
|
1585
|
+
/* @__PURE__ */ e(
|
|
1347
1586
|
"span",
|
|
1348
1587
|
{
|
|
1349
1588
|
style: {
|
|
@@ -1352,7 +1591,7 @@ function U({
|
|
|
1352
1591
|
children: t
|
|
1353
1592
|
}
|
|
1354
1593
|
),
|
|
1355
|
-
|
|
1594
|
+
i && /* @__PURE__ */ e(
|
|
1356
1595
|
"img",
|
|
1357
1596
|
{
|
|
1358
1597
|
src: "/images/black-swirl-divider.png",
|
|
@@ -1360,17 +1599,17 @@ function U({
|
|
|
1360
1599
|
}
|
|
1361
1600
|
)
|
|
1362
1601
|
] }),
|
|
1363
|
-
a && /* @__PURE__ */
|
|
1602
|
+
a && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
|
|
1364
1603
|
"by ",
|
|
1365
1604
|
a
|
|
1366
1605
|
] })
|
|
1367
1606
|
] });
|
|
1368
1607
|
}
|
|
1369
|
-
function
|
|
1370
|
-
const t =
|
|
1371
|
-
return /* @__PURE__ */
|
|
1372
|
-
/* @__PURE__ */
|
|
1373
|
-
/* @__PURE__ */
|
|
1608
|
+
function oe({ color: i }) {
|
|
1609
|
+
const t = J(i, 180);
|
|
1610
|
+
return /* @__PURE__ */ e("div", { className: "sidebar-container", children: [
|
|
1611
|
+
/* @__PURE__ */ e("div", { className: "sidebar-background" }),
|
|
1612
|
+
/* @__PURE__ */ e(
|
|
1374
1613
|
"div",
|
|
1375
1614
|
{
|
|
1376
1615
|
className: "sidebar-overlay",
|
|
@@ -1379,123 +1618,7 @@ function Y({ color: e }) {
|
|
|
1379
1618
|
)
|
|
1380
1619
|
] });
|
|
1381
1620
|
}
|
|
1382
|
-
const
|
|
1383
|
-
function Z({
|
|
1384
|
-
title: e,
|
|
1385
|
-
characters: t,
|
|
1386
|
-
charNameColor: a,
|
|
1387
|
-
iconScale: r,
|
|
1388
|
-
jinxes: n,
|
|
1389
|
-
allCharacters: l,
|
|
1390
|
-
inlineJinxIcons: c
|
|
1391
|
-
}) {
|
|
1392
|
-
const o = t.length > P ? "space-between" : t.length % 2 === 0 ? "space-around" : "flex-start", h = K(t);
|
|
1393
|
-
return /* @__PURE__ */ i("div", { className: "character-section", children: [
|
|
1394
|
-
/* @__PURE__ */ i("h2", { className: "section-title", children: e }),
|
|
1395
|
-
/* @__PURE__ */ i("div", { className: "character-list", children: [
|
|
1396
|
-
/* @__PURE__ */ i("div", { className: "character-column", style: { justifyContent: o }, children: t.slice(0, h).map((s) => /* @__PURE__ */ i(
|
|
1397
|
-
L,
|
|
1398
|
-
{
|
|
1399
|
-
character: s,
|
|
1400
|
-
color: a,
|
|
1401
|
-
iconScale: r,
|
|
1402
|
-
jinxedCharacters: J(s, n, l),
|
|
1403
|
-
inlineJinxIcons: c
|
|
1404
|
-
},
|
|
1405
|
-
s.id
|
|
1406
|
-
)) }),
|
|
1407
|
-
/* @__PURE__ */ i("div", { className: "character-column", style: { justifyContent: o }, children: t.slice(h, t.length).map((s) => /* @__PURE__ */ i(
|
|
1408
|
-
L,
|
|
1409
|
-
{
|
|
1410
|
-
character: s,
|
|
1411
|
-
color: a,
|
|
1412
|
-
iconScale: r,
|
|
1413
|
-
jinxedCharacters: J(s, n, l),
|
|
1414
|
-
inlineJinxIcons: c
|
|
1415
|
-
},
|
|
1416
|
-
s.id
|
|
1417
|
-
)) })
|
|
1418
|
-
] })
|
|
1419
|
-
] });
|
|
1420
|
-
}
|
|
1421
|
-
function L({
|
|
1422
|
-
character: e,
|
|
1423
|
-
color: t,
|
|
1424
|
-
iconScale: a,
|
|
1425
|
-
jinxedCharacters: r,
|
|
1426
|
-
inlineJinxIcons: n
|
|
1427
|
-
}) {
|
|
1428
|
-
const l = (o) => {
|
|
1429
|
-
const h = o.match(/^(.*?)(\[.*?\])$/);
|
|
1430
|
-
if (h) {
|
|
1431
|
-
const [, s, d] = h;
|
|
1432
|
-
return /* @__PURE__ */ i(f, { children: [
|
|
1433
|
-
s,
|
|
1434
|
-
/* @__PURE__ */ i("strong", { className: "setup-ability", children: d })
|
|
1435
|
-
] });
|
|
1436
|
-
}
|
|
1437
|
-
return o;
|
|
1438
|
-
}, c = M(e);
|
|
1439
|
-
return /* @__PURE__ */ i("div", { className: "character-card", children: [
|
|
1440
|
-
/* @__PURE__ */ i("div", { className: "character-icon-wrapper", children: c ? /* @__PURE__ */ i(
|
|
1441
|
-
"img",
|
|
1442
|
-
{
|
|
1443
|
-
src: c,
|
|
1444
|
-
alt: e.name,
|
|
1445
|
-
className: "character-icon",
|
|
1446
|
-
style: { scale: a.toString() }
|
|
1447
|
-
}
|
|
1448
|
-
) : /* @__PURE__ */ i(
|
|
1449
|
-
"div",
|
|
1450
|
-
{
|
|
1451
|
-
className: "character-icon-placeholder",
|
|
1452
|
-
style: { color: t, scale: a.toString() },
|
|
1453
|
-
children: e.name.charAt(0)
|
|
1454
|
-
}
|
|
1455
|
-
) }),
|
|
1456
|
-
/* @__PURE__ */ i("div", { className: "character-info", children: [
|
|
1457
|
-
/* @__PURE__ */ i("h3", { className: "character-name", style: { color: t }, children: [
|
|
1458
|
-
e.name,
|
|
1459
|
-
n && r.length > 0 && /* @__PURE__ */ i("span", { className: "inline-jinx-icons", children: r.map((o) => {
|
|
1460
|
-
const h = M(o);
|
|
1461
|
-
return h ? /* @__PURE__ */ i(
|
|
1462
|
-
"img",
|
|
1463
|
-
{
|
|
1464
|
-
src: h,
|
|
1465
|
-
alt: o.name,
|
|
1466
|
-
className: "inline-jinx-icon",
|
|
1467
|
-
title: `Jinxed with ${o.name}`
|
|
1468
|
-
},
|
|
1469
|
-
o.id
|
|
1470
|
-
) : /* @__PURE__ */ i(
|
|
1471
|
-
"span",
|
|
1472
|
-
{
|
|
1473
|
-
className: "inline-jinx-icon-placeholder",
|
|
1474
|
-
title: `Jinxed with ${o.name}`,
|
|
1475
|
-
children: o.name.charAt(0)
|
|
1476
|
-
},
|
|
1477
|
-
o.id
|
|
1478
|
-
);
|
|
1479
|
-
}) })
|
|
1480
|
-
] }),
|
|
1481
|
-
/* @__PURE__ */ i("p", { className: "character-ability", children: l(e.ability) })
|
|
1482
|
-
] })
|
|
1483
|
-
] });
|
|
1484
|
-
}
|
|
1485
|
-
function K(e) {
|
|
1486
|
-
const t = Math.ceil(e.length / 2);
|
|
1487
|
-
if (e.length % 2 === 0 || e.length <= P)
|
|
1488
|
-
return t;
|
|
1489
|
-
const a = t, r = t - 1, n = e.slice(0, a), l = e.slice(r - 1), c = n.reduce(
|
|
1490
|
-
(h, s) => h + s.ability.length,
|
|
1491
|
-
0
|
|
1492
|
-
), o = l.reduce(
|
|
1493
|
-
(h, s) => h + s.ability.length,
|
|
1494
|
-
0
|
|
1495
|
-
);
|
|
1496
|
-
return c < o ? a : r;
|
|
1497
|
-
}
|
|
1498
|
-
const D = /* @__PURE__ */ new Set([
|
|
1621
|
+
const W = /* @__PURE__ */ new Set([
|
|
1499
1622
|
"the",
|
|
1500
1623
|
"of",
|
|
1501
1624
|
"in",
|
|
@@ -1515,21 +1638,21 @@ const D = /* @__PURE__ */ new Set([
|
|
|
1515
1638
|
"upon",
|
|
1516
1639
|
"after",
|
|
1517
1640
|
"before"
|
|
1518
|
-
]),
|
|
1519
|
-
const
|
|
1520
|
-
if (r === 0 ||
|
|
1521
|
-
const
|
|
1522
|
-
for (let d = r; d < n.length &&
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1641
|
+
]), j = (i, t) => W.has(i) || t === 0 && W.has(i.toLowerCase()), se = (i) => i.split(/\s+/).reduce((t, a, r, n) => {
|
|
1642
|
+
const h = j(a, r), l = r > 0 && j(n[r - 1], r - 1);
|
|
1643
|
+
if (r === 0 || h !== l) {
|
|
1644
|
+
const c = [];
|
|
1645
|
+
for (let d = r; d < n.length && j(n[d], d) === h; d++)
|
|
1646
|
+
c.push(n[d]);
|
|
1647
|
+
const o = t.length > 0;
|
|
1525
1648
|
t.push(
|
|
1526
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ e(
|
|
1527
1650
|
"span",
|
|
1528
1651
|
{
|
|
1529
|
-
className:
|
|
1652
|
+
className: h ? "minor-word" : void 0,
|
|
1530
1653
|
children: [
|
|
1531
|
-
|
|
1532
|
-
|
|
1654
|
+
o && " ",
|
|
1655
|
+
c.join(" ")
|
|
1533
1656
|
]
|
|
1534
1657
|
},
|
|
1535
1658
|
r
|
|
@@ -1538,22 +1661,22 @@ const D = /* @__PURE__ */ new Set([
|
|
|
1538
1661
|
}
|
|
1539
1662
|
return t;
|
|
1540
1663
|
}, []);
|
|
1541
|
-
function
|
|
1542
|
-
return typeof
|
|
1664
|
+
function p(i) {
|
|
1665
|
+
return typeof i == "string" ? i === "dawn" ? "/images/dawn-icon.png" : i === "dusk" ? "/images/dusk-icon.png" : i === "minioninfo" ? "/images/minioninfo.png" : "/images/demoninfo.png" : typeof i.image == "string" ? i.image : Array.isArray(i.image) && i.image.length ? i.image[0] : i.wiki_image;
|
|
1543
1666
|
}
|
|
1544
|
-
const
|
|
1545
|
-
const t =
|
|
1546
|
-
return /* @__PURE__ */
|
|
1547
|
-
/* @__PURE__ */
|
|
1548
|
-
/* @__PURE__ */
|
|
1549
|
-
/* @__PURE__ */
|
|
1667
|
+
const he = (i) => {
|
|
1668
|
+
const t = i.nightOrders.first, a = i.nightOrders.other;
|
|
1669
|
+
return /* @__PURE__ */ e("div", { class: "night-orders-container", children: [
|
|
1670
|
+
/* @__PURE__ */ e("div", { class: "night-order", children: [
|
|
1671
|
+
/* @__PURE__ */ e("p", { children: "First Night:" }),
|
|
1672
|
+
/* @__PURE__ */ e("div", { class: "icon-row", children: t.map((r) => /* @__PURE__ */ e("img", { src: p(r), class: "icon" })) })
|
|
1550
1673
|
] }),
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
1553
|
-
/* @__PURE__ */
|
|
1674
|
+
/* @__PURE__ */ e("div", { class: "night-order", children: [
|
|
1675
|
+
/* @__PURE__ */ e("p", { children: "Other Nights:" }),
|
|
1676
|
+
/* @__PURE__ */ e("div", { class: "icon-row", children: a.map((r) => /* @__PURE__ */ e("img", { src: p(r), class: "icon" })) })
|
|
1554
1677
|
] })
|
|
1555
1678
|
] });
|
|
1556
|
-
},
|
|
1679
|
+
}, le = {
|
|
1557
1680
|
5: [3, 0, 1, 1],
|
|
1558
1681
|
6: [3, 1, 1, 1],
|
|
1559
1682
|
7: [5, 0, 1, 1],
|
|
@@ -1565,38 +1688,45 @@ const X = (e) => {
|
|
|
1565
1688
|
13: [9, 0, 3, 1],
|
|
1566
1689
|
14: [9, 1, 3, 1],
|
|
1567
1690
|
"15+": [9, 2, 3, 1]
|
|
1568
|
-
},
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1691
|
+
}, z = ({ background: i = !0 }) => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1692
|
+
"div",
|
|
1693
|
+
{
|
|
1694
|
+
className: `player-count-container ${i ? "with-background" : ""}`,
|
|
1695
|
+
children: [
|
|
1696
|
+
/* @__PURE__ */ e("div", { className: "count-column titles", children: [
|
|
1697
|
+
/* @__PURE__ */ e("div", { className: "row-title", children: "Players" }),
|
|
1698
|
+
/* @__PURE__ */ e("div", { className: "row-title good-count", children: "Townsfolk" }),
|
|
1699
|
+
/* @__PURE__ */ e("div", { className: "row-title good-count", children: "Outsiders" }),
|
|
1700
|
+
/* @__PURE__ */ e("div", { className: "row-title evil-count", children: "Minions" }),
|
|
1701
|
+
/* @__PURE__ */ e("div", { className: "row-title evil-count", children: "Demons" })
|
|
1702
|
+
] }),
|
|
1703
|
+
Object.entries(le).map(([t, a]) => /* @__PURE__ */ e("div", { className: "count-column", children: [
|
|
1704
|
+
/* @__PURE__ */ e("div", { className: "player-count", children: t }),
|
|
1705
|
+
/* @__PURE__ */ e("div", { className: "good-count", children: a[0] }),
|
|
1706
|
+
/* @__PURE__ */ e("div", { className: "good-count", children: a[1] }),
|
|
1707
|
+
/* @__PURE__ */ e("div", { className: "evil-count", children: a[2] }),
|
|
1708
|
+
/* @__PURE__ */ e("div", { className: "evil-count", children: a[3] })
|
|
1709
|
+
] }))
|
|
1710
|
+
]
|
|
1711
|
+
}
|
|
1712
|
+
) }), ce = ({
|
|
1713
|
+
title: i,
|
|
1585
1714
|
color: t,
|
|
1586
1715
|
includeMargins: a,
|
|
1587
1716
|
formatMinorWords: r = !1,
|
|
1588
1717
|
displayNightOrder: n = !1,
|
|
1589
|
-
nightOrders:
|
|
1590
|
-
displayPlayerCounts:
|
|
1718
|
+
nightOrders: h = { first: [], other: [] },
|
|
1719
|
+
displayPlayerCounts: l = !0,
|
|
1720
|
+
dimensions: s
|
|
1591
1721
|
}) => {
|
|
1592
|
-
const
|
|
1593
|
-
const
|
|
1594
|
-
return
|
|
1595
|
-
r ?
|
|
1596
|
-
y <
|
|
1722
|
+
const c = () => {
|
|
1723
|
+
const d = i.split("&");
|
|
1724
|
+
return d.map((g, y) => /* @__PURE__ */ e(f, { children: [
|
|
1725
|
+
r ? se(g) : g,
|
|
1726
|
+
y < d.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
|
|
1597
1727
|
] }));
|
|
1598
|
-
},
|
|
1599
|
-
return /* @__PURE__ */
|
|
1728
|
+
}, o = J(t, 180);
|
|
1729
|
+
return /* @__PURE__ */ e(L, { dimensions: s, children: /* @__PURE__ */ e(
|
|
1600
1730
|
"div",
|
|
1601
1731
|
{
|
|
1602
1732
|
className: "sheet-backing",
|
|
@@ -1604,63 +1734,48 @@ const X = (e) => {
|
|
|
1604
1734
|
transform: a ? "scale(0.952)" : void 0
|
|
1605
1735
|
},
|
|
1606
1736
|
children: [
|
|
1607
|
-
/* @__PURE__ */
|
|
1608
|
-
/* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ e("div", { className: "sheet-background", children: /* @__PURE__ */ e("div", { className: "title-container", children: /* @__PURE__ */ e("h1", { children: c() }) }) }),
|
|
1738
|
+
/* @__PURE__ */ e(
|
|
1609
1739
|
"div",
|
|
1610
1740
|
{
|
|
1611
1741
|
className: "sheet-back-overlay",
|
|
1612
|
-
style: { background:
|
|
1742
|
+
style: { background: o }
|
|
1613
1743
|
}
|
|
1614
1744
|
),
|
|
1615
|
-
/* @__PURE__ */
|
|
1616
|
-
|
|
1617
|
-
n && /* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ e("div", { className: "back-info-container", children: [
|
|
1746
|
+
l && /* @__PURE__ */ e(z, {}),
|
|
1747
|
+
n && /* @__PURE__ */ e(he, { nightOrders: h })
|
|
1618
1748
|
] })
|
|
1619
1749
|
]
|
|
1620
1750
|
}
|
|
1621
|
-
);
|
|
1622
|
-
},
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
/* @__PURE__ */ i("h3", { className: "night-title", children: "First Night" }),
|
|
1626
|
-
/* @__PURE__ */ i("h3", { className: "script-title", children: e.title })
|
|
1627
|
-
] }),
|
|
1628
|
-
/* @__PURE__ */ i("div", { className: "night-sheet-order", children: e.firstNightOrder.map((t) => /* @__PURE__ */ i(A, { entry: t, night: "first" })) })
|
|
1629
|
-
] }),
|
|
1630
|
-
/* @__PURE__ */ i(T, { ...e, children: [
|
|
1631
|
-
/* @__PURE__ */ i("div", { className: "night-sheet-heading", children: [
|
|
1632
|
-
/* @__PURE__ */ i("h3", { className: "night-title", children: "Other Nights" }),
|
|
1633
|
-
/* @__PURE__ */ i("h3", { className: "script-title", children: e.title })
|
|
1634
|
-
] }),
|
|
1635
|
-
/* @__PURE__ */ i("div", { className: "night-sheet-order", children: e.otherNightOrder.map((t) => /* @__PURE__ */ i(A, { entry: t, night: "other" })) })
|
|
1636
|
-
] })
|
|
1637
|
-
] }), T = (e) => {
|
|
1638
|
-
const t = j(e.color), a = O(t, 20), r = S(e.color, 180);
|
|
1639
|
-
return /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(
|
|
1751
|
+
) });
|
|
1752
|
+
}, S = (i) => {
|
|
1753
|
+
const t = M(i.color), a = C(t, 20), r = J(i.color, 180);
|
|
1754
|
+
return /* @__PURE__ */ e(L, { dimensions: i.dimensions, children: /* @__PURE__ */ e(
|
|
1640
1755
|
"div",
|
|
1641
1756
|
{
|
|
1642
|
-
className: "
|
|
1757
|
+
className: "bottom-trim-sheet",
|
|
1643
1758
|
style: {
|
|
1644
|
-
transform:
|
|
1759
|
+
transform: i.includeMargins ? "scale(0.952)" : void 0,
|
|
1645
1760
|
"--header-gradient": a
|
|
1646
1761
|
},
|
|
1647
1762
|
children: [
|
|
1648
|
-
/* @__PURE__ */
|
|
1763
|
+
/* @__PURE__ */ e(
|
|
1649
1764
|
"img",
|
|
1650
1765
|
{
|
|
1651
1766
|
className: "character-sheet-background",
|
|
1652
1767
|
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
1653
1768
|
}
|
|
1654
1769
|
),
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
/* @__PURE__ */
|
|
1657
|
-
/* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1659
|
-
/* @__PURE__ */
|
|
1660
|
-
/* @__PURE__ */
|
|
1770
|
+
/* @__PURE__ */ e("div", { className: "sheet-content", children: i.children }),
|
|
1771
|
+
/* @__PURE__ */ e("div", { className: "spacer" }),
|
|
1772
|
+
/* @__PURE__ */ e("div", { className: "info-footer-container", children: [
|
|
1773
|
+
/* @__PURE__ */ e("div", { className: "info-author-credit", children: [
|
|
1774
|
+
/* @__PURE__ */ e("p", { children: "© Steven Medway bloodontheclocktower.com" }),
|
|
1775
|
+
/* @__PURE__ */ e("p", { children: "Script template by John Forster ravenswoodstudio.xyz" })
|
|
1661
1776
|
] }),
|
|
1662
|
-
/* @__PURE__ */
|
|
1663
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ e("div", { className: "info-footer-background" }),
|
|
1778
|
+
/* @__PURE__ */ e(
|
|
1664
1779
|
"div",
|
|
1665
1780
|
{
|
|
1666
1781
|
className: "info-footer-overlay",
|
|
@@ -1671,30 +1786,45 @@ const X = (e) => {
|
|
|
1671
1786
|
]
|
|
1672
1787
|
}
|
|
1673
1788
|
) });
|
|
1674
|
-
},
|
|
1675
|
-
|
|
1789
|
+
}, de = (i) => /* @__PURE__ */ e(f, { children: [
|
|
1790
|
+
/* @__PURE__ */ e(S, { ...i, children: [
|
|
1791
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
|
|
1792
|
+
/* @__PURE__ */ e("h3", { className: "night-title", children: "First Night" }),
|
|
1793
|
+
/* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
|
|
1794
|
+
] }),
|
|
1795
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.firstNightOrder.map((t) => /* @__PURE__ */ e(E, { entry: t, night: "first" })) })
|
|
1796
|
+
] }),
|
|
1797
|
+
/* @__PURE__ */ e(S, { ...i, children: [
|
|
1798
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
|
|
1799
|
+
/* @__PURE__ */ e("h3", { className: "night-title", children: "Other Nights" }),
|
|
1800
|
+
/* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
|
|
1801
|
+
] }),
|
|
1802
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.otherNightOrder.map((t) => /* @__PURE__ */ e(E, { entry: t, night: "other" })) })
|
|
1803
|
+
] })
|
|
1804
|
+
] }), me = () => /* @__PURE__ */ e("img", { className: "reminder-icon", src: "/images/reminder.png" }), E = (i) => {
|
|
1805
|
+
const t = p(i.entry), { reminderText: a, name: r } = ge(i.entry, i.night), n = typeof i.entry == "string" ? "#222" : v[i.entry.team];
|
|
1676
1806
|
if (!a)
|
|
1677
|
-
return console.warn("No reminder text found for:",
|
|
1678
|
-
const
|
|
1679
|
-
return /* @__PURE__ */
|
|
1680
|
-
/* @__PURE__ */
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1683
|
-
/* @__PURE__ */
|
|
1684
|
-
const
|
|
1685
|
-
return /* @__PURE__ */
|
|
1807
|
+
return console.warn("No reminder text found for:", i.entry), /* @__PURE__ */ e(f, {});
|
|
1808
|
+
const h = (s) => s.split(":reminder:").map((c, o) => o % 2 === 0 ? c : /* @__PURE__ */ e(me, {}));
|
|
1809
|
+
return /* @__PURE__ */ e("div", { className: "night-sheet-entry", children: [
|
|
1810
|
+
/* @__PURE__ */ e("img", { src: t }),
|
|
1811
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-entry-text", children: [
|
|
1812
|
+
/* @__PURE__ */ e("p", { className: "reminder-name", style: { color: n }, children: r }),
|
|
1813
|
+
/* @__PURE__ */ e("p", { className: "reminder-text", children: ((s) => {
|
|
1814
|
+
const c = s.split("*").map((o, d) => d % 2 === 0 ? o : /* @__PURE__ */ e("strong", { children: o })).map((o) => typeof o == "string" ? h(o) : o);
|
|
1815
|
+
return /* @__PURE__ */ e(f, { children: c });
|
|
1686
1816
|
})(a) })
|
|
1687
1817
|
] })
|
|
1688
1818
|
] });
|
|
1689
|
-
},
|
|
1690
|
-
if (typeof
|
|
1691
|
-
const a = t === "first" ?
|
|
1819
|
+
}, ge = (i, t) => {
|
|
1820
|
+
if (typeof i == "object") {
|
|
1821
|
+
const a = t === "first" ? i.firstNightReminder : i.otherNightReminder, r = i.name;
|
|
1692
1822
|
return { reminderText: a, name: r };
|
|
1693
1823
|
} else {
|
|
1694
|
-
const a =
|
|
1824
|
+
const a = ye[i], r = t === "first" ? a.first : a.other ?? "", n = a.name;
|
|
1695
1825
|
return { reminderText: r, name: n };
|
|
1696
1826
|
}
|
|
1697
|
-
},
|
|
1827
|
+
}, ye = {
|
|
1698
1828
|
dusk: {
|
|
1699
1829
|
first: "Start the Night Phase.",
|
|
1700
1830
|
name: "Dusk",
|
|
@@ -1714,10 +1844,10 @@ const X = (e) => {
|
|
|
1714
1844
|
name: "Minion Info"
|
|
1715
1845
|
}
|
|
1716
1846
|
};
|
|
1717
|
-
function
|
|
1718
|
-
const t =
|
|
1847
|
+
function ue(i) {
|
|
1848
|
+
const t = i.filter((n) => n.team === "fabled");
|
|
1719
1849
|
return [
|
|
1720
|
-
...
|
|
1850
|
+
...i.filter((n) => n.team === "loric").map((n) => ({
|
|
1721
1851
|
name: n.name,
|
|
1722
1852
|
note: n.ability,
|
|
1723
1853
|
image: n.wiki_image ?? (Array.isArray(n.image) ? n.image[0] : n.image)
|
|
@@ -1729,69 +1859,188 @@ function oe(e) {
|
|
|
1729
1859
|
}))
|
|
1730
1860
|
];
|
|
1731
1861
|
}
|
|
1732
|
-
|
|
1733
|
-
var r;
|
|
1734
|
-
return /* @__PURE__ */
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
/* @__PURE__ */
|
|
1739
|
-
|
|
1862
|
+
const fe = (i) => {
|
|
1863
|
+
var t, a, r, n, h, l, s, c;
|
|
1864
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(S, { ...i, children: [
|
|
1865
|
+
/* @__PURE__ */ e("div", { className: "info-sheet-heading", children: /* @__PURE__ */ e("h3", { className: "script-title", children: i.title }) }),
|
|
1866
|
+
/* @__PURE__ */ e("div", { className: "info-sheet-content", children: [
|
|
1867
|
+
i.displayNightOrder && !!((t = i.firstNightOrder) != null && t.length) && /* @__PURE__ */ e(f, { children: [
|
|
1868
|
+
/* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "First Night" }),
|
|
1869
|
+
/* @__PURE__ */ e("div", { class: "info-sheet-section", children: /* @__PURE__ */ e("div", { className: "icon-row", children: i.firstNightOrder.map((o) => /* @__PURE__ */ e("img", { src: p(o), class: "icon" })) }) })
|
|
1870
|
+
] }),
|
|
1871
|
+
i.displayNightOrder && !!((a = i.otherNightOrder) != null && a.length) && /* @__PURE__ */ e(f, { children: [
|
|
1872
|
+
/* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Other Nights" }),
|
|
1873
|
+
/* @__PURE__ */ e("div", { class: "info-sheet-section", children: /* @__PURE__ */ e("div", { className: "icon-row", children: i.otherNightOrder.map((o) => /* @__PURE__ */ e("img", { src: p(o), class: "icon" })) }) })
|
|
1874
|
+
] }),
|
|
1875
|
+
!!((r = i.fabledOrLoric) != null && r.length) && /* @__PURE__ */ e(f, { children: [
|
|
1876
|
+
/* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Fabled & Loric" }),
|
|
1877
|
+
/* @__PURE__ */ e("div", { class: "info-sheet-section", children: (n = i.fabledOrLoric) == null ? void 0 : n.map((o) => {
|
|
1878
|
+
var d;
|
|
1879
|
+
return /* @__PURE__ */ e("div", { className: "info-fabled-loric-entry", children: [
|
|
1880
|
+
/* @__PURE__ */ e("img", { src: o.image, alt: o.name, class: "icon" }),
|
|
1881
|
+
/* @__PURE__ */ e("div", { className: "info-fabled-loric-text", children: [
|
|
1882
|
+
/* @__PURE__ */ e("p", { className: "info-fabled-loric-name", children: o.name }),
|
|
1883
|
+
/* @__PURE__ */ e("p", { className: "info-fabled-loric-note", children: o.note }),
|
|
1884
|
+
o.name.toLowerCase() === "bootlegger" && ((d = i.bootleggerRules) == null ? void 0 : d.map((g, y) => /* @__PURE__ */ e(
|
|
1885
|
+
"p",
|
|
1886
|
+
{
|
|
1887
|
+
className: "info-fabled-loric-note",
|
|
1888
|
+
children: g
|
|
1889
|
+
},
|
|
1890
|
+
`bootlegger-rule-${y}`
|
|
1891
|
+
)))
|
|
1892
|
+
] })
|
|
1893
|
+
] });
|
|
1894
|
+
}) })
|
|
1895
|
+
] }),
|
|
1896
|
+
!!((h = i.jinxes) != null && h.length) && /* @__PURE__ */ e(f, { children: [
|
|
1897
|
+
/* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Jinxes" }),
|
|
1898
|
+
/* @__PURE__ */ e("div", { class: "info-sheet-section", children: (l = i.jinxes) == null ? void 0 : l.map((o) => /* @__PURE__ */ e("div", { className: "info-jinx-entry", children: [
|
|
1899
|
+
/* @__PURE__ */ e(
|
|
1900
|
+
"img",
|
|
1901
|
+
{
|
|
1902
|
+
src: p(o.characters[0]),
|
|
1903
|
+
alt: o.text,
|
|
1904
|
+
class: "icon"
|
|
1905
|
+
}
|
|
1906
|
+
),
|
|
1907
|
+
/* @__PURE__ */ e(
|
|
1908
|
+
"img",
|
|
1909
|
+
{
|
|
1910
|
+
src: p(o.characters[1]),
|
|
1911
|
+
alt: o.text,
|
|
1912
|
+
class: "icon"
|
|
1913
|
+
}
|
|
1914
|
+
),
|
|
1915
|
+
/* @__PURE__ */ e("div", { className: "info-jinx-text", children: [
|
|
1916
|
+
/* @__PURE__ */ e("p", { className: "info-jinx-name", children: [
|
|
1917
|
+
o.characters[0].name,
|
|
1918
|
+
" & ",
|
|
1919
|
+
o.characters[1].name
|
|
1920
|
+
] }),
|
|
1921
|
+
/* @__PURE__ */ e("p", { className: "info-jinx-note", children: o.text })
|
|
1922
|
+
] })
|
|
1923
|
+
] })) })
|
|
1924
|
+
] }),
|
|
1925
|
+
!!((s = i.travellers) != null && s.length) && /* @__PURE__ */ e(f, { children: [
|
|
1926
|
+
/* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Recommended Travellers" }),
|
|
1927
|
+
/* @__PURE__ */ e("div", { class: "info-sheet-section", children: (c = i.travellers) == null ? void 0 : c.map((o) => /* @__PURE__ */ e("div", { className: "info-fabled-loric-entry", children: [
|
|
1928
|
+
/* @__PURE__ */ e(
|
|
1929
|
+
"img",
|
|
1930
|
+
{
|
|
1931
|
+
src: p(o),
|
|
1932
|
+
alt: o.name,
|
|
1933
|
+
class: "icon"
|
|
1934
|
+
}
|
|
1935
|
+
),
|
|
1936
|
+
/* @__PURE__ */ e("div", { className: "info-fabled-loric-text", children: [
|
|
1937
|
+
/* @__PURE__ */ e("p", { className: "info-fabled-loric-name", children: o.name }),
|
|
1938
|
+
/* @__PURE__ */ e("p", { className: "info-fabled-loric-note", children: o.ability })
|
|
1939
|
+
] })
|
|
1940
|
+
] })) })
|
|
1941
|
+
] }),
|
|
1942
|
+
i.showBaseCharacterCounts && /* @__PURE__ */ e(f, { children: [
|
|
1943
|
+
/* @__PURE__ */ e("h4", { className: "info-sheet-section-title", children: "Base Character Counts" }),
|
|
1944
|
+
/* @__PURE__ */ e("div", { className: "info-sheet-section", children: /* @__PURE__ */ e(z, { background: !1 }) })
|
|
1945
|
+
] })
|
|
1946
|
+
] })
|
|
1947
|
+
] }) });
|
|
1948
|
+
};
|
|
1949
|
+
function ve({ script: i, options: t, nightOrders: a }) {
|
|
1950
|
+
var s;
|
|
1951
|
+
const r = Y(i.characters), n = t.showJinxes ? K(i.characters, t.useOldJinxes) : [], h = n.map(
|
|
1952
|
+
({ characters: [c, o], jinx: d }) => {
|
|
1953
|
+
const g = i.characters.find((m) => m.id === c), y = i.characters.find((m) => m.id === o);
|
|
1954
|
+
return {
|
|
1955
|
+
characters: [g, y],
|
|
1956
|
+
text: d
|
|
1957
|
+
};
|
|
1958
|
+
}
|
|
1959
|
+
), l = ue(i.characters);
|
|
1960
|
+
return /* @__PURE__ */ e("div", { className: "sheet-wrapper", children: [
|
|
1961
|
+
Array(t.numberOfCharacterSheets).fill(!0).map((c, o) => {
|
|
1962
|
+
var d, g, y, m, u, x;
|
|
1963
|
+
return /* @__PURE__ */ e("div", { className: o === 0 ? "" : "print-only", children: [
|
|
1964
|
+
/* @__PURE__ */ e(
|
|
1965
|
+
ne,
|
|
1740
1966
|
{
|
|
1741
|
-
title: ((
|
|
1742
|
-
author: t.showAuthor ? (
|
|
1743
|
-
characters:
|
|
1967
|
+
title: ((d = i.metadata) == null ? void 0 : d.name) || "Custom Script",
|
|
1968
|
+
author: t.showAuthor ? (g = i.metadata) == null ? void 0 : g.author : void 0,
|
|
1969
|
+
characters: r,
|
|
1744
1970
|
color: t.color,
|
|
1745
|
-
jinxes:
|
|
1746
|
-
fabledOrLoric:
|
|
1971
|
+
jinxes: n,
|
|
1972
|
+
fabledOrLoric: l,
|
|
1747
1973
|
showSwirls: t.showSwirls,
|
|
1748
1974
|
includeMargins: t.includeMargins,
|
|
1749
1975
|
solidTitle: t.solidTitle,
|
|
1750
1976
|
iconScale: t.iconScale,
|
|
1751
1977
|
appearance: t.appearance,
|
|
1752
1978
|
inlineJinxIcons: t.inlineJinxIcons,
|
|
1753
|
-
bootleggerRules: (
|
|
1979
|
+
bootleggerRules: (y = i.metadata) == null ? void 0 : y.bootlegger,
|
|
1980
|
+
dimensions: t.dimensions
|
|
1754
1981
|
}
|
|
1755
1982
|
),
|
|
1756
|
-
/* @__PURE__ */
|
|
1757
|
-
t.
|
|
1758
|
-
/* @__PURE__ */
|
|
1759
|
-
|
|
1983
|
+
/* @__PURE__ */ e("div", { style: "break-after:page;" }),
|
|
1984
|
+
t.overleaf === "backingSheet" && /* @__PURE__ */ e(f, { children: [
|
|
1985
|
+
/* @__PURE__ */ e(
|
|
1986
|
+
ce,
|
|
1760
1987
|
{
|
|
1761
|
-
title: ((
|
|
1988
|
+
title: ((m = i.metadata) == null ? void 0 : m.name) || "Custom Script",
|
|
1762
1989
|
color: t.color,
|
|
1763
1990
|
includeMargins: t.includeMargins,
|
|
1764
1991
|
nightOrders: a,
|
|
1765
1992
|
formatMinorWords: t.formatMinorWords,
|
|
1766
1993
|
displayNightOrder: t.displayNightOrder,
|
|
1767
|
-
displayPlayerCounts: t.displayPlayerCounts
|
|
1994
|
+
displayPlayerCounts: t.displayPlayerCounts,
|
|
1995
|
+
dimensions: t.dimensions
|
|
1996
|
+
}
|
|
1997
|
+
),
|
|
1998
|
+
/* @__PURE__ */ e("div", { style: "break-after:page;" })
|
|
1999
|
+
] }),
|
|
2000
|
+
t.overleaf === "infoSheet" && /* @__PURE__ */ e(f, { children: [
|
|
2001
|
+
/* @__PURE__ */ e(
|
|
2002
|
+
fe,
|
|
2003
|
+
{
|
|
2004
|
+
firstNightOrder: a.first,
|
|
2005
|
+
otherNightOrder: a.other,
|
|
2006
|
+
includeMargins: t.includeMargins,
|
|
2007
|
+
title: ((u = i.metadata) == null ? void 0 : u.name) || "Custom Script",
|
|
2008
|
+
color: t.color,
|
|
2009
|
+
bootleggerRules: (x = i.metadata) == null ? void 0 : x.bootlegger,
|
|
2010
|
+
jinxes: h,
|
|
2011
|
+
fabledOrLoric: l,
|
|
2012
|
+
travellers: r.traveller,
|
|
2013
|
+
showBaseCharacterCounts: t.displayPlayerCounts,
|
|
2014
|
+
displayNightOrder: t.displayNightOrder,
|
|
2015
|
+
dimensions: t.dimensions
|
|
1768
2016
|
}
|
|
1769
2017
|
),
|
|
1770
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ e("div", { style: "break-after:page;" })
|
|
1771
2019
|
] })
|
|
1772
2020
|
] });
|
|
1773
2021
|
}),
|
|
1774
|
-
t.showNightSheet && /* @__PURE__ */
|
|
1775
|
-
/* @__PURE__ */
|
|
1776
|
-
|
|
2022
|
+
t.showNightSheet && /* @__PURE__ */ e(f, { children: [
|
|
2023
|
+
/* @__PURE__ */ e(
|
|
2024
|
+
de,
|
|
1777
2025
|
{
|
|
1778
2026
|
firstNightOrder: a.first,
|
|
1779
2027
|
otherNightOrder: a.other,
|
|
1780
2028
|
includeMargins: t.includeMargins,
|
|
1781
|
-
title: ((
|
|
1782
|
-
color: t.color
|
|
2029
|
+
title: ((s = i.metadata) == null ? void 0 : s.name) || "Custom Script",
|
|
2030
|
+
color: t.color,
|
|
2031
|
+
dimensions: t.dimensions
|
|
1783
2032
|
}
|
|
1784
2033
|
),
|
|
1785
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ e("div", { style: "break-after:page;" })
|
|
1786
2035
|
] })
|
|
1787
2036
|
] });
|
|
1788
2037
|
}
|
|
1789
2038
|
export {
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
2039
|
+
ne as CharacterSheet,
|
|
2040
|
+
ve as FancyDoc,
|
|
2041
|
+
de as NightSheet,
|
|
2042
|
+
ce as SheetBack,
|
|
2043
|
+
F as darken,
|
|
2044
|
+
$ as parseRgb,
|
|
2045
|
+
V as rgbString
|
|
1797
2046
|
};
|