botc-character-sheet 0.11.0-beta.2 → 0.12.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/JinxesAndSpecial.d.ts +10 -0
- package/dist/components/JinxesAndSpecial.d.ts.map +1 -0
- package/dist/index.js +359 -309
- package/dist/pages/CharacterSheet.d.ts +3 -1
- package/dist/pages/CharacterSheet.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/fabledOrLoric.d.ts +8 -0
- package/dist/utils/fabledOrLoric.d.ts.map +1 -0
- package/dist/utils/scriptUtils.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/FancyDoc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FancyDoc.d.ts","sourceRoot":"","sources":["../src/FancyDoc.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"FancyDoc.d.ts","sourceRoot":"","sources":["../src/FancyDoc.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAInE,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,aAAa,gCA0DvE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Jinx, ResolvedCharacter } from "../types";
|
|
2
|
+
import { FabledOrLoric } from "../utils/fabledOrLoric";
|
|
3
|
+
interface JinxesSectionProps {
|
|
4
|
+
jinxes: Jinx[];
|
|
5
|
+
allCharacters: ResolvedCharacter[];
|
|
6
|
+
fabledAndLoric: FabledOrLoric[];
|
|
7
|
+
}
|
|
8
|
+
export declare function JinxesAndSpecial({ jinxes, allCharacters, fabledAndLoric, }: JinxesSectionProps): import("preact").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=JinxesAndSpecial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JinxesAndSpecial.d.ts","sourceRoot":"","sources":["../../src/components/JinxesAndSpecial.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,UAAU,kBAAkB;IAC1B,MAAM,EAAE,IAAI,EAAE,CAAC;IACf,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,aAAa,EACb,cAAc,GACf,EAAE,kBAAkB,gCAoDpB"}
|
package/dist/index.js
CHANGED
|
@@ -1,86 +1,148 @@
|
|
|
1
|
-
import { options as
|
|
2
|
-
var
|
|
3
|
-
function e(
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
if ("ref" in
|
|
7
|
-
var
|
|
8
|
-
if (typeof
|
|
9
|
-
return
|
|
1
|
+
import { options as I, Fragment as m } from "preact";
|
|
2
|
+
var J = 0;
|
|
3
|
+
function e(i, t, n, r, a, c) {
|
|
4
|
+
t || (t = {});
|
|
5
|
+
var h, l, o = t;
|
|
6
|
+
if ("ref" in o) for (l in o = {}, t) l == "ref" ? h = t[l] : o[l] = t[l];
|
|
7
|
+
var s = { type: i, props: o, key: n, ref: h, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --J, __i: -1, __u: 0, __source: a, __self: c };
|
|
8
|
+
if (typeof i == "function" && (h = i.defaultProps)) for (l in h) o[l] === void 0 && (o[l] = h[l]);
|
|
9
|
+
return I.vnode && I.vnode(s), s;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
if (
|
|
11
|
+
function D(i) {
|
|
12
|
+
if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((a) => a + a).join("")), i.length !== 6)
|
|
13
13
|
throw new Error("Invalid HEX color.");
|
|
14
|
-
const
|
|
15
|
-
return [
|
|
14
|
+
const t = parseInt(i.slice(0, 2), 16), n = parseInt(i.slice(2, 4), 16), r = parseInt(i.slice(4, 6), 16);
|
|
15
|
+
return [t, n, r];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
return
|
|
17
|
+
function T(i, t, n) {
|
|
18
|
+
const r = (a) => {
|
|
19
|
+
const c = a.toString(16);
|
|
20
|
+
return c.length === 1 ? "0" + c : c;
|
|
21
21
|
};
|
|
22
|
-
return `#${
|
|
22
|
+
return `#${r(i)}${r(t)}${r(n)}`;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const [
|
|
26
|
-
return
|
|
24
|
+
function N(i, t) {
|
|
25
|
+
const [n, r, a] = D(i), c = Math.round(n * t), h = Math.round(r * t), l = Math.round(a * t);
|
|
26
|
+
return T(c, h, l);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const f = {
|
|
29
29
|
townsfolk: "#00469e",
|
|
30
30
|
outsider: "#00469e",
|
|
31
31
|
minion: "#580709",
|
|
32
32
|
demon: "#580709",
|
|
33
33
|
fabled: "#6b5f05ff",
|
|
34
|
-
traveller: "#390758ff"
|
|
35
|
-
|
|
34
|
+
traveller: "#390758ff",
|
|
35
|
+
loric: "#1f5807"
|
|
36
36
|
};
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
color: n = "#4a5568",
|
|
42
|
-
jinxes: o = [],
|
|
43
|
-
showSwirls: h = !0,
|
|
44
|
-
includeMargins: s = !1,
|
|
45
|
-
solidTitle: c = !1,
|
|
46
|
-
iconScale: l = 1.6,
|
|
47
|
-
appearance: r = "normal"
|
|
37
|
+
function A({
|
|
38
|
+
jinxes: i,
|
|
39
|
+
allCharacters: t,
|
|
40
|
+
fabledAndLoric: n
|
|
48
41
|
}) {
|
|
49
|
-
const
|
|
42
|
+
const r = new Map(
|
|
43
|
+
t.map((o) => [o.id.toLowerCase(), o])
|
|
44
|
+
), a = i.length > 4, c = a ? Math.ceil(i.length / 2) : i.length;
|
|
45
|
+
let h, l;
|
|
46
|
+
return n.length ? (h = i.map((o, s) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${s}`)), l = n.map((o, s) => /* @__PURE__ */ e(W, { item: o }, `rc-${s}`))) : a ? (h = i.slice(0, c).map((o, s) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${s}`)), l = i.slice(c).map((o, s) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `rc-${s}`))) : h = i.map((o, s) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${s}`)), /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
|
|
47
|
+
/* @__PURE__ */ e("h2", { className: "section-title" }),
|
|
48
|
+
l ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
|
|
49
|
+
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
50
|
+
...h
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
53
|
+
...l
|
|
54
|
+
] })
|
|
55
|
+
] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: [
|
|
56
|
+
...h
|
|
57
|
+
] })
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
const p = ({ charMap: i, jinx: t }) => {
|
|
61
|
+
const n = i.get(t.characters[0]), r = i.get(t.characters[1]);
|
|
62
|
+
return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
|
|
63
|
+
/* @__PURE__ */ e("div", { className: "jinx-icons", children: [
|
|
64
|
+
n && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: b(n) ? /* @__PURE__ */ e(
|
|
65
|
+
"img",
|
|
66
|
+
{
|
|
67
|
+
src: b(n),
|
|
68
|
+
alt: n.name,
|
|
69
|
+
className: "jinx-icon"
|
|
70
|
+
}
|
|
71
|
+
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: n.name.charAt(0) }) }),
|
|
72
|
+
/* @__PURE__ */ e("span", { className: "jinx-divider" }),
|
|
73
|
+
r && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: b(r) ? /* @__PURE__ */ e(
|
|
74
|
+
"img",
|
|
75
|
+
{
|
|
76
|
+
src: b(r),
|
|
77
|
+
alt: r.name,
|
|
78
|
+
className: "jinx-icon"
|
|
79
|
+
}
|
|
80
|
+
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: r.name.charAt(0) }) })
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ e("p", { className: "jinx-text", children: t.jinx })
|
|
83
|
+
] });
|
|
84
|
+
};
|
|
85
|
+
function W({ item: i }) {
|
|
86
|
+
return /* @__PURE__ */ e("div", { className: "jinx-item loric", children: [
|
|
87
|
+
/* @__PURE__ */ e("div", { className: "loric-spacer" }),
|
|
88
|
+
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) }),
|
|
89
|
+
/* @__PURE__ */ e("div", { className: "loric-text-container", children: [
|
|
90
|
+
/* @__PURE__ */ e("p", { className: "jinx-text loric-name", children: i.name }),
|
|
91
|
+
/* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: i.note })
|
|
92
|
+
] })
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
function b(i) {
|
|
96
|
+
return i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
|
|
97
|
+
}
|
|
98
|
+
function P({
|
|
99
|
+
title: i,
|
|
100
|
+
author: t,
|
|
101
|
+
characters: n,
|
|
102
|
+
color: r = "#4a5568",
|
|
103
|
+
jinxes: a = [],
|
|
104
|
+
showSwirls: c = !0,
|
|
105
|
+
includeMargins: h = !1,
|
|
106
|
+
solidTitle: l = !1,
|
|
107
|
+
iconScale: o = 1.6,
|
|
108
|
+
appearance: s = "normal",
|
|
109
|
+
fabledOrLoric: d = []
|
|
110
|
+
}) {
|
|
111
|
+
const u = [
|
|
50
112
|
{
|
|
51
113
|
key: "townsfolk",
|
|
52
114
|
title: "Townsfolk",
|
|
53
|
-
chars:
|
|
54
|
-
color:
|
|
115
|
+
chars: n.townsfolk,
|
|
116
|
+
color: f.townsfolk
|
|
55
117
|
},
|
|
56
118
|
{
|
|
57
119
|
key: "outsider",
|
|
58
120
|
title: "Outsiders",
|
|
59
|
-
chars:
|
|
60
|
-
color:
|
|
121
|
+
chars: n.outsider,
|
|
122
|
+
color: f.outsider
|
|
61
123
|
},
|
|
62
124
|
{
|
|
63
125
|
key: "minion",
|
|
64
126
|
title: "Minions",
|
|
65
|
-
chars:
|
|
66
|
-
color:
|
|
127
|
+
chars: n.minion,
|
|
128
|
+
color: f.minion
|
|
67
129
|
},
|
|
68
130
|
{
|
|
69
131
|
key: "demon",
|
|
70
132
|
title: "Demons",
|
|
71
|
-
chars:
|
|
72
|
-
color:
|
|
133
|
+
chars: n.demon,
|
|
134
|
+
color: f.demon
|
|
73
135
|
}
|
|
74
|
-
].filter((
|
|
136
|
+
].filter((y) => y.chars.length > 0), g = N(r, 0.4);
|
|
75
137
|
return /* @__PURE__ */ e(
|
|
76
138
|
"div",
|
|
77
139
|
{
|
|
78
140
|
className: "character-sheet",
|
|
79
141
|
id: "character-sheet",
|
|
80
142
|
style: {
|
|
81
|
-
"--header-color-light":
|
|
82
|
-
"--header-color-dark":
|
|
83
|
-
transform:
|
|
143
|
+
"--header-color-light": r,
|
|
144
|
+
"--header-color-dark": g,
|
|
145
|
+
transform: h ? "scale(0.952)" : void 0
|
|
84
146
|
},
|
|
85
147
|
children: [
|
|
86
148
|
/* @__PURE__ */ e(
|
|
@@ -90,44 +152,45 @@ function D({
|
|
|
90
152
|
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
91
153
|
}
|
|
92
154
|
),
|
|
93
|
-
/* @__PURE__ */ e(
|
|
155
|
+
/* @__PURE__ */ e(E, { color: r }),
|
|
94
156
|
/* @__PURE__ */ e("div", { className: "sheet-content", children: [
|
|
95
157
|
/* @__PURE__ */ e(
|
|
96
|
-
|
|
158
|
+
C,
|
|
97
159
|
{
|
|
98
|
-
showSwirls:
|
|
99
|
-
title:
|
|
100
|
-
author:
|
|
101
|
-
solidHeader:
|
|
160
|
+
showSwirls: c,
|
|
161
|
+
title: i,
|
|
162
|
+
author: t,
|
|
163
|
+
solidHeader: l
|
|
102
164
|
}
|
|
103
165
|
),
|
|
104
166
|
/* @__PURE__ */ e("div", { className: "characters-grid", children: [
|
|
105
|
-
|
|
167
|
+
u.map((y, x) => /* @__PURE__ */ e(m, { children: [
|
|
106
168
|
/* @__PURE__ */ e(
|
|
107
|
-
|
|
169
|
+
O,
|
|
108
170
|
{
|
|
109
|
-
title:
|
|
110
|
-
characters:
|
|
111
|
-
sidebarColor:
|
|
112
|
-
charNameColor:
|
|
113
|
-
iconScale:
|
|
114
|
-
appearance:
|
|
171
|
+
title: y.title.toUpperCase(),
|
|
172
|
+
characters: y.chars,
|
|
173
|
+
sidebarColor: r,
|
|
174
|
+
charNameColor: y.color,
|
|
175
|
+
iconScale: o,
|
|
176
|
+
appearance: s
|
|
115
177
|
},
|
|
116
|
-
|
|
178
|
+
y.key
|
|
117
179
|
),
|
|
118
|
-
|
|
180
|
+
x < u.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
|
|
119
181
|
] })),
|
|
120
|
-
|
|
182
|
+
a.length > 0 && /* @__PURE__ */ e(m, { children: [
|
|
121
183
|
/* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" }),
|
|
122
184
|
/* @__PURE__ */ e(
|
|
123
|
-
|
|
185
|
+
A,
|
|
124
186
|
{
|
|
125
|
-
|
|
187
|
+
fabledAndLoric: d,
|
|
188
|
+
jinxes: a,
|
|
126
189
|
allCharacters: [
|
|
127
|
-
...
|
|
128
|
-
...
|
|
129
|
-
...
|
|
130
|
-
...
|
|
190
|
+
...n.townsfolk,
|
|
191
|
+
...n.outsider,
|
|
192
|
+
...n.minion,
|
|
193
|
+
...n.demon
|
|
131
194
|
]
|
|
132
195
|
}
|
|
133
196
|
)
|
|
@@ -146,15 +209,15 @@ function D({
|
|
|
146
209
|
}
|
|
147
210
|
);
|
|
148
211
|
}
|
|
149
|
-
function
|
|
150
|
-
showSwirls:
|
|
151
|
-
title:
|
|
152
|
-
author:
|
|
153
|
-
solidHeader:
|
|
212
|
+
function C({
|
|
213
|
+
showSwirls: i,
|
|
214
|
+
title: t,
|
|
215
|
+
author: n,
|
|
216
|
+
solidHeader: r = !1
|
|
154
217
|
}) {
|
|
155
|
-
return
|
|
218
|
+
return /* @__PURE__ */ e(m, { children: [
|
|
156
219
|
/* @__PURE__ */ e("h1", { className: "sheet-header", children: [
|
|
157
|
-
|
|
220
|
+
i && /* @__PURE__ */ e(
|
|
158
221
|
"img",
|
|
159
222
|
{
|
|
160
223
|
src: "/images/black-swirl-divider.png",
|
|
@@ -165,12 +228,12 @@ function T({
|
|
|
165
228
|
"span",
|
|
166
229
|
{
|
|
167
230
|
style: {
|
|
168
|
-
mixBlendMode:
|
|
231
|
+
mixBlendMode: r ? "normal" : "multiply"
|
|
169
232
|
},
|
|
170
|
-
children:
|
|
233
|
+
children: t
|
|
171
234
|
}
|
|
172
235
|
),
|
|
173
|
-
|
|
236
|
+
i && /* @__PURE__ */ e(
|
|
174
237
|
"img",
|
|
175
238
|
{
|
|
176
239
|
src: "/images/black-swirl-divider.png",
|
|
@@ -178,132 +241,96 @@ function T({
|
|
|
178
241
|
}
|
|
179
242
|
)
|
|
180
243
|
] }),
|
|
181
|
-
|
|
244
|
+
n && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
|
|
182
245
|
"by ",
|
|
183
|
-
|
|
246
|
+
n
|
|
184
247
|
] })
|
|
185
248
|
] });
|
|
186
249
|
}
|
|
187
|
-
function
|
|
250
|
+
function E({ color: i }) {
|
|
188
251
|
return /* @__PURE__ */ e("div", { className: "sidebar-container", children: [
|
|
189
252
|
/* @__PURE__ */ e("div", { className: "sidebar-background" }),
|
|
190
|
-
/* @__PURE__ */ e("div", { className: "sidebar-overlay", style: { backgroundColor:
|
|
253
|
+
/* @__PURE__ */ e("div", { className: "sidebar-overlay", style: { backgroundColor: i } })
|
|
191
254
|
] });
|
|
192
255
|
}
|
|
193
|
-
function
|
|
194
|
-
title:
|
|
195
|
-
characters:
|
|
196
|
-
charNameColor:
|
|
197
|
-
iconScale:
|
|
198
|
-
appearance:
|
|
256
|
+
function O({
|
|
257
|
+
title: i,
|
|
258
|
+
characters: t,
|
|
259
|
+
charNameColor: n,
|
|
260
|
+
iconScale: r,
|
|
261
|
+
appearance: a = "normal"
|
|
199
262
|
}) {
|
|
200
|
-
const
|
|
263
|
+
const c = t.length > 8 ? "space-between" : "flex-start";
|
|
201
264
|
return /* @__PURE__ */ e("div", { className: "character-section", children: [
|
|
202
|
-
/* @__PURE__ */ e("h2", { className: "section-title", children:
|
|
265
|
+
/* @__PURE__ */ e("h2", { className: "section-title", children: i }),
|
|
203
266
|
/* @__PURE__ */ e("div", { className: "character-list", children: [
|
|
204
|
-
/* @__PURE__ */ e("div", { className: "character-column", children:
|
|
205
|
-
|
|
267
|
+
/* @__PURE__ */ e("div", { className: "character-column", children: t.slice(0, Math.ceil(t.length / 2)).map((h) => /* @__PURE__ */ e(
|
|
268
|
+
j,
|
|
206
269
|
{
|
|
207
|
-
character:
|
|
208
|
-
color:
|
|
209
|
-
iconScale:
|
|
210
|
-
appearance:
|
|
270
|
+
character: h,
|
|
271
|
+
color: n,
|
|
272
|
+
iconScale: r,
|
|
273
|
+
appearance: a
|
|
211
274
|
},
|
|
212
|
-
|
|
275
|
+
h.id
|
|
213
276
|
)) }),
|
|
214
|
-
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent:
|
|
215
|
-
|
|
277
|
+
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: c }, children: t.slice(Math.ceil(t.length / 2), t.length).map((h) => /* @__PURE__ */ e(
|
|
278
|
+
j,
|
|
216
279
|
{
|
|
217
|
-
character:
|
|
218
|
-
color:
|
|
219
|
-
iconScale:
|
|
220
|
-
appearance:
|
|
280
|
+
character: h,
|
|
281
|
+
color: n,
|
|
282
|
+
iconScale: r,
|
|
283
|
+
appearance: a
|
|
221
284
|
},
|
|
222
|
-
|
|
285
|
+
h.id
|
|
223
286
|
)) })
|
|
224
287
|
] })
|
|
225
288
|
] });
|
|
226
289
|
}
|
|
227
|
-
function
|
|
228
|
-
character:
|
|
229
|
-
color:
|
|
230
|
-
iconScale:
|
|
231
|
-
appearance:
|
|
290
|
+
function j({
|
|
291
|
+
character: i,
|
|
292
|
+
color: t,
|
|
293
|
+
iconScale: n,
|
|
294
|
+
appearance: r = "normal"
|
|
232
295
|
}) {
|
|
233
|
-
const
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
236
|
-
const [,
|
|
237
|
-
return /* @__PURE__ */ e(
|
|
238
|
-
|
|
239
|
-
/* @__PURE__ */ e("strong", { className: "setup-ability", children:
|
|
296
|
+
const a = () => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null, c = (g) => {
|
|
297
|
+
const y = g.match(/^(.*?)(\[.*?\])$/);
|
|
298
|
+
if (y) {
|
|
299
|
+
const [, x, L] = y;
|
|
300
|
+
return /* @__PURE__ */ e(m, { children: [
|
|
301
|
+
x,
|
|
302
|
+
/* @__PURE__ */ e("strong", { className: "setup-ability", children: L })
|
|
240
303
|
] });
|
|
241
304
|
}
|
|
242
|
-
return
|
|
243
|
-
},
|
|
244
|
-
return /* @__PURE__ */ e("div", { className:
|
|
245
|
-
/* @__PURE__ */ e("div", { className: "character-icon-wrapper", children:
|
|
305
|
+
return g;
|
|
306
|
+
}, h = a(), l = r !== "normal" ? `character-card ${r}` : "character-card", o = r === "super-compact" ? "character-icon super-compact" : "character-icon", s = r === "super-compact" ? "character-icon-placeholder super-compact" : "character-icon-placeholder", d = r === "super-compact" ? "character-name super-compact" : "character-name", u = r === "super-compact" ? "character-ability super-compact" : "character-ability";
|
|
307
|
+
return /* @__PURE__ */ e("div", { className: l, children: [
|
|
308
|
+
/* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: h ? /* @__PURE__ */ e(
|
|
246
309
|
"img",
|
|
247
310
|
{
|
|
248
|
-
src:
|
|
249
|
-
alt:
|
|
250
|
-
className:
|
|
251
|
-
style: { scale:
|
|
311
|
+
src: h,
|
|
312
|
+
alt: i.name,
|
|
313
|
+
className: o,
|
|
314
|
+
style: { scale: n.toString() }
|
|
252
315
|
}
|
|
253
316
|
) : /* @__PURE__ */ e(
|
|
254
317
|
"div",
|
|
255
318
|
{
|
|
256
|
-
className:
|
|
257
|
-
style: { color:
|
|
258
|
-
children:
|
|
319
|
+
className: s,
|
|
320
|
+
style: { color: t, scale: n.toString() },
|
|
321
|
+
children: i.name.charAt(0)
|
|
259
322
|
}
|
|
260
323
|
) }),
|
|
261
324
|
/* @__PURE__ */ e("div", { className: "character-info", children: [
|
|
262
|
-
/* @__PURE__ */ e("h3", { className: d, style: { color:
|
|
263
|
-
/* @__PURE__ */ e("p", { className:
|
|
325
|
+
/* @__PURE__ */ e("h3", { className: d, style: { color: t }, children: i.name }),
|
|
326
|
+
/* @__PURE__ */ e("p", { className: u, children: c(i.ability) })
|
|
264
327
|
] })
|
|
265
328
|
] });
|
|
266
329
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
i.map((r) => [r.id.toLowerCase(), r])
|
|
270
|
-
), n = (r) => r.wiki_image ? r.wiki_image : r.image ? typeof r.image == "string" ? r.image : r.image[0] : null, o = (r, d) => {
|
|
271
|
-
const y = a.get(r.characters[0]), m = a.get(r.characters[1]);
|
|
272
|
-
return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
|
|
273
|
-
/* @__PURE__ */ e("div", { className: "jinx-icons", children: [
|
|
274
|
-
y && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: n(y) ? /* @__PURE__ */ e(
|
|
275
|
-
"img",
|
|
276
|
-
{
|
|
277
|
-
src: n(y),
|
|
278
|
-
alt: y.name,
|
|
279
|
-
className: "jinx-icon"
|
|
280
|
-
}
|
|
281
|
-
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: y.name.charAt(0) }) }),
|
|
282
|
-
/* @__PURE__ */ e("span", { className: "jinx-divider" }),
|
|
283
|
-
m && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: n(m) ? /* @__PURE__ */ e(
|
|
284
|
-
"img",
|
|
285
|
-
{
|
|
286
|
-
src: n(m),
|
|
287
|
-
alt: m.name,
|
|
288
|
-
className: "jinx-icon"
|
|
289
|
-
}
|
|
290
|
-
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: m.name.charAt(0) }) })
|
|
291
|
-
] }),
|
|
292
|
-
/* @__PURE__ */ e("p", { className: "jinx-text", children: r.jinx })
|
|
293
|
-
] }, d);
|
|
294
|
-
}, h = t.length > 4, s = h ? Math.ceil(t.length / 2) : t.length, c = t.slice(0, s), l = t.slice(s);
|
|
295
|
-
return /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
|
|
296
|
-
/* @__PURE__ */ e("h2", { className: "section-title" }),
|
|
297
|
-
h ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
|
|
298
|
-
/* @__PURE__ */ e("div", { className: "jinx-column", children: c.map((r, d) => o(r, d)) }),
|
|
299
|
-
/* @__PURE__ */ e("div", { className: "jinx-column", children: l.map((r, d) => o(r, s + d)) })
|
|
300
|
-
] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: t.map((r, d) => o(r, d)) })
|
|
301
|
-
] });
|
|
302
|
-
}
|
|
303
|
-
function b(t) {
|
|
304
|
-
return typeof t == "string" ? t === "dawn" ? "/images/dawn-icon.png" : t === "dusk" ? "/images/dusk-icon.png" : t === "minioninfo" ? "/images/minioninfo.png" : "/images/demoninfo.png" : typeof t.image == "string" ? t.image : Array.isArray(t.image) && t.image.length ? t.image[0] : t.wiki_image;
|
|
330
|
+
function w(i) {
|
|
331
|
+
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;
|
|
305
332
|
}
|
|
306
|
-
const
|
|
333
|
+
const k = /* @__PURE__ */ new Set([
|
|
307
334
|
"the",
|
|
308
335
|
"of",
|
|
309
336
|
"in",
|
|
@@ -323,65 +350,65 @@ const w = /* @__PURE__ */ new Set([
|
|
|
323
350
|
"upon",
|
|
324
351
|
"after",
|
|
325
352
|
"before"
|
|
326
|
-
]),
|
|
327
|
-
const
|
|
328
|
-
if (
|
|
329
|
-
const
|
|
330
|
-
for (let d =
|
|
331
|
-
|
|
332
|
-
const
|
|
333
|
-
|
|
353
|
+
]), v = (i, t) => k.has(i) || t === 0 && k.has(i.toLowerCase()), z = (i) => i.split(/\s+/).reduce((t, n, r, a) => {
|
|
354
|
+
const c = v(n, r), h = r > 0 && v(a[r - 1], r - 1);
|
|
355
|
+
if (r === 0 || c !== h) {
|
|
356
|
+
const o = [];
|
|
357
|
+
for (let d = r; d < a.length && v(a[d], d) === c; d++)
|
|
358
|
+
o.push(a[d]);
|
|
359
|
+
const s = t.length > 0;
|
|
360
|
+
t.push(
|
|
334
361
|
/* @__PURE__ */ e(
|
|
335
362
|
"span",
|
|
336
363
|
{
|
|
337
|
-
className:
|
|
364
|
+
className: c ? "minor-word" : void 0,
|
|
338
365
|
children: [
|
|
339
|
-
|
|
340
|
-
|
|
366
|
+
s && " ",
|
|
367
|
+
o.join(" ")
|
|
341
368
|
]
|
|
342
369
|
},
|
|
343
|
-
|
|
370
|
+
r
|
|
344
371
|
)
|
|
345
372
|
);
|
|
346
373
|
}
|
|
347
|
-
return
|
|
348
|
-
}, []),
|
|
349
|
-
title:
|
|
350
|
-
color:
|
|
351
|
-
includeMargins:
|
|
352
|
-
formatMinorWords:
|
|
353
|
-
displayNightOrder:
|
|
354
|
-
firstNightOrder:
|
|
355
|
-
otherNightOrder:
|
|
374
|
+
return t;
|
|
375
|
+
}, []), R = ({
|
|
376
|
+
title: i,
|
|
377
|
+
color: t,
|
|
378
|
+
includeMargins: n,
|
|
379
|
+
formatMinorWords: r = !1,
|
|
380
|
+
displayNightOrder: a = !1,
|
|
381
|
+
firstNightOrder: c = [],
|
|
382
|
+
otherNightOrder: h = []
|
|
356
383
|
}) => /* @__PURE__ */ e(
|
|
357
384
|
"div",
|
|
358
385
|
{
|
|
359
386
|
className: "sheet-backing",
|
|
360
387
|
style: {
|
|
361
|
-
transform:
|
|
388
|
+
transform: n ? "scale(0.952)" : void 0
|
|
362
389
|
},
|
|
363
390
|
children: [
|
|
364
391
|
/* @__PURE__ */ e("div", { className: "sheet-background", children: [
|
|
365
392
|
/* @__PURE__ */ e("div", { className: "title-container", children: /* @__PURE__ */ e("h1", { children: (() => {
|
|
366
|
-
const
|
|
367
|
-
return
|
|
368
|
-
|
|
369
|
-
d <
|
|
393
|
+
const o = i.split("&");
|
|
394
|
+
return o.map((s, d) => /* @__PURE__ */ e(m, { children: [
|
|
395
|
+
r ? z(s) : s,
|
|
396
|
+
d < o.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
|
|
370
397
|
] }));
|
|
371
398
|
})() }) }),
|
|
372
|
-
|
|
399
|
+
a && /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("div", { className: "night-order-container", children: [
|
|
373
400
|
/* @__PURE__ */ e("div", { className: "night-order", children: [
|
|
374
401
|
/* @__PURE__ */ e("span", { children: "First Night:" }),
|
|
375
|
-
/* @__PURE__ */ e("div", { className: "night-icons", children:
|
|
376
|
-
const
|
|
377
|
-
return
|
|
402
|
+
/* @__PURE__ */ e("div", { className: "night-icons", children: c.map((o) => {
|
|
403
|
+
const s = w(o);
|
|
404
|
+
return s && /* @__PURE__ */ e("img", { src: s, class: "night-order-icon" });
|
|
378
405
|
}) })
|
|
379
406
|
] }),
|
|
380
407
|
/* @__PURE__ */ e("div", { className: "night-order", children: [
|
|
381
408
|
/* @__PURE__ */ e("span", { children: "Other Nights:" }),
|
|
382
|
-
/* @__PURE__ */ e("div", { className: "night-icons", children:
|
|
383
|
-
const
|
|
384
|
-
return
|
|
409
|
+
/* @__PURE__ */ e("div", { className: "night-icons", children: h.map((o) => {
|
|
410
|
+
const s = w(o);
|
|
411
|
+
return s && /* @__PURE__ */ e("img", { src: s, class: "night-order-icon" });
|
|
385
412
|
}) })
|
|
386
413
|
] })
|
|
387
414
|
] }) })
|
|
@@ -390,36 +417,36 @@ const w = /* @__PURE__ */ new Set([
|
|
|
390
417
|
"div",
|
|
391
418
|
{
|
|
392
419
|
className: "sheet-back-overlay",
|
|
393
|
-
style: { backgroundColor:
|
|
420
|
+
style: { backgroundColor: t }
|
|
394
421
|
}
|
|
395
422
|
)
|
|
396
423
|
]
|
|
397
424
|
}
|
|
398
|
-
),
|
|
399
|
-
/* @__PURE__ */ e(
|
|
425
|
+
), H = (i) => /* @__PURE__ */ e(m, { children: [
|
|
426
|
+
/* @__PURE__ */ e(S, { ...i, children: [
|
|
400
427
|
/* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
|
|
401
428
|
/* @__PURE__ */ e("h3", { className: "night-title", children: "First Night" }),
|
|
402
|
-
/* @__PURE__ */ e("h3", { className: "script-title", children:
|
|
429
|
+
/* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
|
|
403
430
|
] }),
|
|
404
|
-
/* @__PURE__ */ e("div", { className: "night-sheet-order", children:
|
|
431
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.firstNightOrder.map((t) => /* @__PURE__ */ e(M, { entry: t, night: "first" })) })
|
|
405
432
|
] }),
|
|
406
|
-
/* @__PURE__ */ e(
|
|
433
|
+
/* @__PURE__ */ e(S, { ...i, children: [
|
|
407
434
|
/* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
|
|
408
435
|
/* @__PURE__ */ e("h3", { className: "night-title", children: "Other Nights" }),
|
|
409
|
-
/* @__PURE__ */ e("h3", { className: "script-title", children:
|
|
436
|
+
/* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
|
|
410
437
|
] }),
|
|
411
|
-
/* @__PURE__ */ e("div", { className: "night-sheet-order", children:
|
|
438
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.otherNightOrder.map((t) => /* @__PURE__ */ e(M, { entry: t, night: "other" })) })
|
|
412
439
|
] })
|
|
413
|
-
] }),
|
|
414
|
-
const
|
|
415
|
-
return /* @__PURE__ */ e(
|
|
440
|
+
] }), S = (i) => {
|
|
441
|
+
const t = N(i.color, 0.4);
|
|
442
|
+
return /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
416
443
|
"div",
|
|
417
444
|
{
|
|
418
445
|
className: "night-sheet",
|
|
419
446
|
style: {
|
|
420
|
-
transform:
|
|
421
|
-
"--header-color-light":
|
|
422
|
-
"--header-color-dark":
|
|
447
|
+
transform: i.includeMargins ? "scale(0.952)" : void 0,
|
|
448
|
+
"--header-color-light": i.color,
|
|
449
|
+
"--header-color-dark": t
|
|
423
450
|
},
|
|
424
451
|
children: [
|
|
425
452
|
/* @__PURE__ */ e(
|
|
@@ -429,7 +456,7 @@ const w = /* @__PURE__ */ new Set([
|
|
|
429
456
|
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
430
457
|
}
|
|
431
458
|
),
|
|
432
|
-
/* @__PURE__ */ e("div", { className: "sheet-content", children:
|
|
459
|
+
/* @__PURE__ */ e("div", { className: "sheet-content", children: i.children }),
|
|
433
460
|
/* @__PURE__ */ e("div", { className: "spacer" }),
|
|
434
461
|
/* @__PURE__ */ e("div", { className: "info-author-credit", children: [
|
|
435
462
|
/* @__PURE__ */ e("p", { children: "© Steven Medway bloodontheclocktower.com" }),
|
|
@@ -441,37 +468,37 @@ const w = /* @__PURE__ */ new Set([
|
|
|
441
468
|
"div",
|
|
442
469
|
{
|
|
443
470
|
className: "info-footer-overlay",
|
|
444
|
-
style: { backgroundColor:
|
|
471
|
+
style: { backgroundColor: i.color }
|
|
445
472
|
}
|
|
446
473
|
)
|
|
447
474
|
] })
|
|
448
475
|
]
|
|
449
476
|
}
|
|
450
477
|
) });
|
|
451
|
-
},
|
|
452
|
-
const
|
|
453
|
-
if (!
|
|
454
|
-
return console.warn("No reminder text found for:",
|
|
455
|
-
const
|
|
478
|
+
}, G = () => /* @__PURE__ */ e("img", { className: "reminder-icon", src: "/images/reminder.png" }), M = (i) => {
|
|
479
|
+
const t = w(i.entry), { reminderText: n, name: r } = _(i.entry, i.night), a = typeof i.entry == "string" ? "#222" : f[i.entry.team];
|
|
480
|
+
if (!n)
|
|
481
|
+
return console.warn("No reminder text found for:", i.entry), /* @__PURE__ */ e(m, {});
|
|
482
|
+
const c = (l) => l.split(":reminder:").map((o, s) => s % 2 === 0 ? o : /* @__PURE__ */ e(G, {}));
|
|
456
483
|
return /* @__PURE__ */ e("div", { className: "night-sheet-entry", children: [
|
|
457
|
-
/* @__PURE__ */ e("img", { src:
|
|
484
|
+
/* @__PURE__ */ e("img", { src: t }),
|
|
458
485
|
/* @__PURE__ */ e("div", { className: "night-sheet-entry-text", children: [
|
|
459
|
-
/* @__PURE__ */ e("p", { className: "reminder-name", style: { color:
|
|
460
|
-
/* @__PURE__ */ e("p", { className: "reminder-text", children: ((
|
|
461
|
-
const
|
|
462
|
-
return /* @__PURE__ */ e(
|
|
463
|
-
})(
|
|
486
|
+
/* @__PURE__ */ e("p", { className: "reminder-name", style: { color: a }, children: r }),
|
|
487
|
+
/* @__PURE__ */ e("p", { className: "reminder-text", children: ((l) => {
|
|
488
|
+
const o = l.split("*").map((s, d) => d % 2 === 0 ? s : /* @__PURE__ */ e("strong", { children: s })).map((s) => typeof s == "string" ? c(s) : s);
|
|
489
|
+
return /* @__PURE__ */ e(m, { children: o });
|
|
490
|
+
})(n) })
|
|
464
491
|
] })
|
|
465
492
|
] });
|
|
466
|
-
},
|
|
467
|
-
if (typeof
|
|
468
|
-
const
|
|
469
|
-
return
|
|
493
|
+
}, _ = (i, t) => {
|
|
494
|
+
if (typeof i == "object") {
|
|
495
|
+
const n = t === "first" ? i.firstNightReminder : i.otherNightReminder, r = i.name;
|
|
496
|
+
return { reminderText: n, name: r };
|
|
470
497
|
} else {
|
|
471
|
-
const
|
|
472
|
-
return { reminderText:
|
|
498
|
+
const n = B[i], r = t === "first" ? n.first : n.other ?? "", a = n.name;
|
|
499
|
+
return { reminderText: r, name: a };
|
|
473
500
|
}
|
|
474
|
-
},
|
|
501
|
+
}, B = {
|
|
475
502
|
dusk: {
|
|
476
503
|
first: "Start the Night Phase.",
|
|
477
504
|
name: "Dusk",
|
|
@@ -490,7 +517,23 @@ const w = /* @__PURE__ */ new Set([
|
|
|
490
517
|
first: "If there are 7 or more players, wake all Minions: Show the *THIS IS THE DEMON* token. Point to the Demon. Show the *THESE ARE YOUR MINIONS* token. Point to the other Minions.",
|
|
491
518
|
name: "Minion Info"
|
|
492
519
|
}
|
|
493
|
-
}
|
|
520
|
+
};
|
|
521
|
+
function V(i) {
|
|
522
|
+
const t = i.filter((a) => a.team === "fabled"), n = i.filter((a) => a.team === "loric");
|
|
523
|
+
return [
|
|
524
|
+
...t.map((a) => ({
|
|
525
|
+
name: a.name,
|
|
526
|
+
note: a.ability,
|
|
527
|
+
image: a.wiki_image ?? (Array.isArray(a.image) ? a.image[0] : a.image)
|
|
528
|
+
})),
|
|
529
|
+
...n.map((a) => ({
|
|
530
|
+
name: a.name,
|
|
531
|
+
note: a.ability,
|
|
532
|
+
image: Array.isArray(a.image) ? a.image[0] : a.image
|
|
533
|
+
}))
|
|
534
|
+
];
|
|
535
|
+
}
|
|
536
|
+
const F = [
|
|
494
537
|
{
|
|
495
538
|
characters: [
|
|
496
539
|
"alchemist",
|
|
@@ -1462,91 +1505,98 @@ const w = /* @__PURE__ */ new Set([
|
|
|
1462
1505
|
oldJinx: "If the Exorcist chooses the Yaggababble, the Yaggababble ability does not kill tonight."
|
|
1463
1506
|
}
|
|
1464
1507
|
];
|
|
1465
|
-
function
|
|
1466
|
-
const
|
|
1508
|
+
function $(i) {
|
|
1509
|
+
const t = {
|
|
1467
1510
|
townsfolk: [],
|
|
1468
1511
|
outsider: [],
|
|
1469
1512
|
minion: [],
|
|
1470
1513
|
demon: [],
|
|
1471
1514
|
traveller: [],
|
|
1472
|
-
fabled: []
|
|
1515
|
+
fabled: [],
|
|
1516
|
+
loric: []
|
|
1473
1517
|
};
|
|
1474
|
-
for (const
|
|
1475
|
-
|
|
1476
|
-
return
|
|
1518
|
+
for (const n of i)
|
|
1519
|
+
t[n.team].push(n);
|
|
1520
|
+
return t;
|
|
1477
1521
|
}
|
|
1478
|
-
function
|
|
1479
|
-
const
|
|
1480
|
-
for (const
|
|
1481
|
-
const [
|
|
1482
|
-
|
|
1483
|
-
characters:
|
|
1484
|
-
jinx:
|
|
1485
|
-
}) :
|
|
1486
|
-
characters:
|
|
1487
|
-
jinx:
|
|
1522
|
+
function Z(i, t = !1) {
|
|
1523
|
+
const n = new Set(i.map((a) => a.id.toLowerCase())), r = [];
|
|
1524
|
+
for (const a of F) {
|
|
1525
|
+
const [c, h] = a.characters;
|
|
1526
|
+
n.has(c) && n.has(h) && (t && a.oldJinx ? r.push({
|
|
1527
|
+
characters: a.characters,
|
|
1528
|
+
jinx: a.oldJinx
|
|
1529
|
+
}) : r.push({
|
|
1530
|
+
characters: a.characters,
|
|
1531
|
+
jinx: a.jinx
|
|
1488
1532
|
}));
|
|
1489
1533
|
}
|
|
1490
|
-
for (const
|
|
1491
|
-
const
|
|
1492
|
-
if (!
|
|
1493
|
-
const
|
|
1494
|
-
if (
|
|
1495
|
-
for (const
|
|
1496
|
-
const d =
|
|
1497
|
-
|
|
1498
|
-
(
|
|
1499
|
-
) ||
|
|
1500
|
-
characters: [
|
|
1501
|
-
jinx:
|
|
1534
|
+
for (const a of i) {
|
|
1535
|
+
const c = typeof a == "object" && a !== null, h = "jinxes" in a;
|
|
1536
|
+
if (!c || !h) continue;
|
|
1537
|
+
const l = a, o = l.id.toLowerCase();
|
|
1538
|
+
if (n.has(o) && l.jinxes)
|
|
1539
|
+
for (const s of l.jinxes) {
|
|
1540
|
+
const d = s.id.toLowerCase();
|
|
1541
|
+
n.has(d) && (r.some(
|
|
1542
|
+
(g) => g.characters[0] === o && g.characters[1] === d || g.characters[0] === d && g.characters[1] === o
|
|
1543
|
+
) || r.push({
|
|
1544
|
+
characters: [o, d],
|
|
1545
|
+
jinx: s.reason
|
|
1502
1546
|
}));
|
|
1503
1547
|
}
|
|
1504
1548
|
}
|
|
1505
|
-
return
|
|
1549
|
+
return r;
|
|
1506
1550
|
}
|
|
1507
|
-
function
|
|
1508
|
-
var
|
|
1551
|
+
function U({ script: i, options: t, nightOrders: n }) {
|
|
1552
|
+
var a, c;
|
|
1509
1553
|
return /* @__PURE__ */ e("div", { className: "sheet-wrapper", children: [
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
{
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1554
|
+
Array(1).fill(!0).map(() => {
|
|
1555
|
+
var h, l;
|
|
1556
|
+
return /* @__PURE__ */ e(m, { children: [
|
|
1557
|
+
/* @__PURE__ */ e(
|
|
1558
|
+
P,
|
|
1559
|
+
{
|
|
1560
|
+
title: ((h = i.metadata) == null ? void 0 : h.name) || "Custom Script",
|
|
1561
|
+
author: t.showAuthor ? (l = i.metadata) == null ? void 0 : l.author : void 0,
|
|
1562
|
+
characters: $(i.characters),
|
|
1563
|
+
color: t.color,
|
|
1564
|
+
jinxes: t.showJinxes ? Z(i.characters, t.useOldJinxes) : [],
|
|
1565
|
+
fabledOrLoric: V(i.characters),
|
|
1566
|
+
showSwirls: t.showSwirls,
|
|
1567
|
+
includeMargins: t.includeMargins,
|
|
1568
|
+
solidTitle: t.solidTitle,
|
|
1569
|
+
iconScale: t.iconScale,
|
|
1570
|
+
appearance: t.appearance
|
|
1571
|
+
}
|
|
1572
|
+
),
|
|
1573
|
+
/* @__PURE__ */ e("div", { style: "break-after:page;" })
|
|
1574
|
+
] });
|
|
1575
|
+
}),
|
|
1576
|
+
t.showBackingSheet && /* @__PURE__ */ e(m, { children: [
|
|
1527
1577
|
/* @__PURE__ */ e(
|
|
1528
|
-
|
|
1578
|
+
R,
|
|
1529
1579
|
{
|
|
1530
|
-
title: ((
|
|
1531
|
-
color:
|
|
1532
|
-
includeMargins:
|
|
1533
|
-
firstNightOrder:
|
|
1534
|
-
otherNightOrder:
|
|
1535
|
-
formatMinorWords:
|
|
1536
|
-
displayNightOrder:
|
|
1580
|
+
title: ((a = i.metadata) == null ? void 0 : a.name) || "Custom Script",
|
|
1581
|
+
color: t.color,
|
|
1582
|
+
includeMargins: t.includeMargins,
|
|
1583
|
+
firstNightOrder: n.first,
|
|
1584
|
+
otherNightOrder: n.other,
|
|
1585
|
+
formatMinorWords: t.formatMinorWords,
|
|
1586
|
+
displayNightOrder: t.displayNightOrder
|
|
1537
1587
|
}
|
|
1538
1588
|
),
|
|
1539
1589
|
/* @__PURE__ */ e("div", { style: "break-after:page;" })
|
|
1540
1590
|
] }),
|
|
1541
|
-
|
|
1591
|
+
t.showNightSheet && /* @__PURE__ */ e(m, { children: [
|
|
1542
1592
|
/* @__PURE__ */ e(
|
|
1543
|
-
|
|
1593
|
+
H,
|
|
1544
1594
|
{
|
|
1545
|
-
firstNightOrder:
|
|
1546
|
-
otherNightOrder:
|
|
1547
|
-
includeMargins:
|
|
1548
|
-
title: ((
|
|
1549
|
-
color:
|
|
1595
|
+
firstNightOrder: n.first,
|
|
1596
|
+
otherNightOrder: n.other,
|
|
1597
|
+
includeMargins: t.includeMargins,
|
|
1598
|
+
title: ((c = i.metadata) == null ? void 0 : c.name) || "Custom Script",
|
|
1599
|
+
color: t.color
|
|
1550
1600
|
}
|
|
1551
1601
|
),
|
|
1552
1602
|
/* @__PURE__ */ e("div", { style: "break-after:page;" })
|
|
@@ -1554,11 +1604,11 @@ function F({ script: t, options: i, nightOrders: a }) {
|
|
|
1554
1604
|
] });
|
|
1555
1605
|
}
|
|
1556
1606
|
export {
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1607
|
+
P as CharacterSheet,
|
|
1608
|
+
U as FancyDoc,
|
|
1609
|
+
H as NightSheet,
|
|
1610
|
+
R as SheetBack,
|
|
1611
|
+
N as darken,
|
|
1612
|
+
D as parseRgb,
|
|
1613
|
+
T as rgbString
|
|
1564
1614
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GroupedCharacters, Jinx } from "../types";
|
|
2
|
+
import { FabledOrLoric } from "../utils/fabledOrLoric";
|
|
2
3
|
interface CharacterSheetProps {
|
|
3
4
|
title: string;
|
|
4
5
|
author?: string;
|
|
@@ -10,7 +11,8 @@ interface CharacterSheetProps {
|
|
|
10
11
|
solidTitle?: boolean;
|
|
11
12
|
iconScale?: number;
|
|
12
13
|
appearance?: "normal" | "compact" | "super-compact";
|
|
14
|
+
fabledOrLoric?: FabledOrLoric[];
|
|
13
15
|
}
|
|
14
|
-
export declare function CharacterSheet({ title, author, characters, color, jinxes, showSwirls, includeMargins, solidTitle, iconScale, appearance, }: CharacterSheetProps): import("preact").JSX.Element;
|
|
16
|
+
export declare function CharacterSheet({ title, author, characters, color, jinxes, showSwirls, includeMargins, solidTitle, iconScale, appearance, fabledOrLoric, }: CharacterSheetProps): import("preact").JSX.Element;
|
|
15
17
|
export {};
|
|
16
18
|
//# sourceMappingURL=CharacterSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../../src/pages/CharacterSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAqB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../../src/pages/CharacterSheet.tsx"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAqB,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,IAAI,EAAE,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,eAAe,CAAC;IACpD,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,UAAU,EACV,KAAiB,EACjB,MAAW,EACX,UAAiB,EACjB,cAAsB,EACtB,UAAkB,EAClB,SAAe,EACf,UAAqB,EACrB,aAAkB,GACnB,EAAE,mBAAmB,gCAmGrB"}
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.character-sheet{width:210mm;min-height:297mm;max-height:297mm;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#2d3748;display:flex;overflow:hidden;isolation:isolate}.character-sheet-background{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.sidebar-container{position:relative}.sidebar-background{background-image:url(/images/sidebar-desaturated-small.jpg);background-size:105mm;width:15mm;height:100%;flex-shrink:0}.sidebar-overlay{position:absolute;top:0;left:0;width:15mm;height:100%;background-color:#0003;pointer-events:none;mix-blend-mode:multiply}.sidebar-section{flex:1;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;text-orientation:mixed;padding:3mm 0}.sidebar-label{font-size:3.5mm;font-weight:600;letter-spacing:.5mm;color:#eee;text-shadow:.3mm .3mm .5mm rgba(0,0,0,.3)}.sheet-content{position:relative;padding:5mm 0 3mm;display:flex;flex-direction:column;min-width:0}.character-column-spacer{min-height:13mm}.sheet-header-container{display:flex;align-items:center}.sheet-header{text-align:center;margin:0 0 4mm;padding:0 10mm;display:flex;align-items:center;justify-content:center}.sheet-header span{font-weight:lighter;letter-spacing:0mm;filter:drop-shadow(.2mm .1mm 0 #222d) drop-shadow(0mm 0mm .1mm #2228);word-spacing:-3mm;background:linear-gradient(-20deg,var(--header-color-light) 50%,var(--header-color-dark));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family:Unlovable,serif;font-weight:100;font-size:14mm;padding:2mm 4mm;margin:0 -4mm;mix-blend-mode:multiply}.swirl-divider{width:35mm;mix-blend-mode:soft-light}.flip{transform:scaleX(-1)}.sheet-author{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;text-align:center;margin:-5mm 0 3mm;color:#333}.characters-grid{display:flex;flex-direction:column;gap:2.5mm;flex:1;padding:0 10mm 0 0}.character-section{display:flex;break-inside:avoid;min-height:20mm}.section-title{font-family:Dumbledor,serif;font-weight:lighter;padding:0 3.5mm;color:#eee;margin:-2mm 0 -2mm -15mm;min-width:15mm;text-align:center;z-index:1;text-orientation:upright;writing-mode:vertical-lr;letter-spacing:-.6mm;font-size:4mm;line-height:2;filter:drop-shadow(.1mm .1mm .3mm #222a) drop-shadow(-.1mm .1mm .3mm #2228) drop-shadow(.1mm -.1mm .3mm #222a) drop-shadow(-.1mm -.1mm .3mm #222a)}.section-divider{height:.8mm;opacity:1;margin-left:-50%;width:150%;mix-blend-mode:soft-light}.character-list{display:flex;margin-left:8mm;gap:5mm}.character-column{flex:1 1 0px;display:flex;flex-direction:column;justify-content:space-between}.character-card{display:flex;align-items:center;gap:2.5mm;break-inside:avoid;margin-bottom:2.5mm}.character-info{padding-left:2mm;display:flex;flex-direction:column}.character-icon-wrapper{display:flex;flex-shrink:0}.character-icon,.character-icon-placeholder{width:13mm;max-height:13mm;object-fit:contain}.character-icon-placeholder{display:flex;align-items:center;justify-content:center;color:#eee;font-weight:700;font-size:6mm}.character-name{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;margin:0 0 .5mm;color:#1a202c}.character-ability{font-family:Trade Gothic,Trade Gothic Next,Helvetica Neue,Arial,sans-serif;font-size:3.1mm;line-height:1.2;margin:0;color:#222;display:inline-block}.character-card.compact{margin-bottom:1mm}.character-ability.super-compact{font-size:2.7mm}.character-name.super-compact{font-size:3.2mm}.character-icon.super-compact,.character-icon-placeholder.super-compact{width:12mm;max-height:12mm}.character-card.super-compact{margin-bottom:.5mm}.sheet-footer{text-align:center;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;color:#222;opacity:.7}.asterisk{font-size:5mm}.author-credit{position:absolute;bottom:3mm;right:3mm;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.2mm;color:#222;opacity:.6;text-align:right}.author-credit p{font-size:2.5mm;margin:0}.setup-ability{display:inline-block;white-space:normal;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif}.jinxes-section{display:flex;break-inside:avoid;margin-top:1mm}.jinxes-list{margin-left:8mm;display:flex;flex-direction:column}.jinxes-two-columns{flex-direction:row;gap:5mm}.jinx-column{flex:1;display:flex;flex-direction:column}.jinx-item{display:flex;gap:2.5mm;align-items:center;break-inside:avoid;margin-bottom:2mm}.jinx-icons{display:flex;gap:1mm;flex-shrink:0;align-items:center}.jinx-icon-wrapper{display:flex;flex-shrink:0;align-items:center}.jinx-icon,.jinx-icon-placeholder{width:3.5mm;height:3.5mm;object-fit:contain;scale:2.8}.jinx-icon-placeholder{display:flex;align-items:center;justify-content:center;color:#eee;font-weight:700;font-size:2mm}.jinx-divider{font-family:Dumbledor,serif;font-size:4.6mm;color:#1a202c;line-height:3.5mm;margin:0 .5mm}.jinx-text{font-family:Trade Gothic,Trade Gothic Next,Helvetica Neue,Arial,sans-serif;font-size:2.6mm;line-height:1.2;margin:0;color:#222;padding-top:.5mm}.sheet-backing{position:relative;width:210mm;min-height:297mm;max-height:297mm}.sheet-background{width:210mm;min-height:297mm;max-height:297mm;background-image:url(/images/sidebar-desaturated-small.jpg);background-repeat:repeat;background-size:105mm;display:flex;flex-direction:column;align-items:center;justify-content:center}.sheet-back-overlay{position:absolute;top:0;left:0;width:100%;height:100%;mix-blend-mode:multiply;pointer-events:none}.sheet-backing h1{font-family:Unlovable,serif;mix-blend-mode:normal;font-weight:100;font-size:30mm;color:#ae9d7f;text-wrap:wrap;z-index:1;flex-shrink:1;text-align:center;padding:10mm;background-image:url(/images/parchment_texture.jpg);background-clip:text;-webkit-background-clip:text;color:transparent;background-size:100mm;filter:drop-shadow(.5mm .5mm black) drop-shadow(0mm 0mm 1mm black);word-spacing:-10mm;flex:0 1 130mm;display:flex;flex-wrap:wrap;justify-content:center}.sheet-backing h1 .ampersand{font-size:45mm;line-height:30mm;vertical-align:-5mm}.night-order-container{position:absolute;background-image:url(/images/parchment_texture.jpg);background-position:0 -50%;left:0;bottom:20mm;font-family:Dumbledor;z-index:1;background-size:200mm;padding:4mm;box-shadow:inset 0 0 5px #000;display:flex;flex-direction:column;gap:5mm;max-width:185mm}.night-order{z-index:1;display:flex;gap:2mm}.night-order span{color:#222;height:6mm;display:flex;align-items:center;justify-content:flex-end;flex:0 0 23mm}.night-icons{z-index:1;display:flex;align-items:center;gap:2mm;flex-wrap:wrap}.night-order-icon{width:6mm;scale:2.1;filter:drop-shadow(0px 0px 2px #2224)}.title-container{z-index:1;display:flex;justify-content:center}.minor-word{padding:0 8mm;font-size:15mm;word-spacing:-6mm;display:flex}.night-sheet{width:210mm;min-height:297mm;max-height:297mm;display:flex;flex-direction:column;position:relative;overflow:hidden;color:#222}.night-sheet-heading{display:flex;align-items:center;justify-content:space-between}.night-sheet .night-title{font-family:Dumbledor;font-size:7mm;margin:0}.night-sheet .script-title{font-family:Unlovable,serif;font-weight:lighter;background:linear-gradient(-20deg,var(--header-color-light) 50%,var(--header-color-dark));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:11mm;line-height:7mm;margin:-3mm;padding:3mm}.night-sheet .sheet-content{padding:15mm;gap:5mm}.night-sheet-order{display:flex;flex-direction:column}.night-sheet-entry{display:flex;align-items:center;margin-bottom:1mm}.reminder-name{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-weight:700;font-size:3mm}.reminder-text{font-family:Trade Gothic;font-size:2.6mm}.night-sheet-entry p{margin:0}.night-sheet-entry p strong{font-family:Trade Gothic Bold}.night-sheet-entry>img{width:6mm;height:6mm;
|
|
1
|
+
.character-sheet{width:210mm;min-height:297mm;max-height:297mm;position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#2d3748;display:flex;overflow:hidden;isolation:isolate}.character-sheet-background{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.sidebar-container{position:relative}.sidebar-background{background-image:url(/images/sidebar-desaturated-small.jpg);background-size:105mm;width:15mm;height:100%;flex-shrink:0}.sidebar-overlay{position:absolute;top:0;left:0;width:15mm;height:100%;background-color:#0003;pointer-events:none;mix-blend-mode:multiply}.sidebar-section{flex:1;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;text-orientation:mixed;padding:3mm 0}.sidebar-label{font-size:3.5mm;font-weight:600;letter-spacing:.5mm;color:#eee;text-shadow:.3mm .3mm .5mm rgba(0,0,0,.3)}.sheet-content{position:relative;padding:5mm 0 3mm;display:flex;flex-direction:column;min-width:0}.character-column-spacer{min-height:13mm}.sheet-header-container{display:flex;align-items:center}.sheet-header{text-align:center;margin:0 0 4mm;padding:0 10mm;display:flex;align-items:center;justify-content:center}.sheet-header span{font-weight:lighter;letter-spacing:0mm;filter:drop-shadow(.2mm .1mm 0 #222d) drop-shadow(0mm 0mm .1mm #2228);word-spacing:-3mm;background:linear-gradient(-20deg,var(--header-color-light) 50%,var(--header-color-dark));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family:Unlovable,serif;font-weight:100;font-size:14mm;padding:2mm 4mm;margin:0 -4mm;mix-blend-mode:multiply}.swirl-divider{width:35mm;mix-blend-mode:soft-light}.flip{transform:scaleX(-1)}.sheet-author{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;text-align:center;margin:-5mm 0 3mm;color:#333}.characters-grid{display:flex;flex-direction:column;gap:2.5mm;flex:1;padding:0 10mm 0 0}.character-section{display:flex;break-inside:avoid;min-height:20mm}.section-title{font-family:Dumbledor,serif;font-weight:lighter;padding:0 3.5mm;color:#eee;margin:-2mm 0 -2mm -15mm;min-width:15mm;text-align:center;z-index:1;text-orientation:upright;writing-mode:vertical-lr;letter-spacing:-.6mm;font-size:4mm;line-height:2;filter:drop-shadow(.1mm .1mm .3mm #222a) drop-shadow(-.1mm .1mm .3mm #2228) drop-shadow(.1mm -.1mm .3mm #222a) drop-shadow(-.1mm -.1mm .3mm #222a)}.section-divider{height:.8mm;opacity:1;margin-left:-50%;width:150%;mix-blend-mode:soft-light}.character-list{display:flex;margin-left:8mm;gap:5mm}.character-column{flex:1 1 0px;display:flex;flex-direction:column;justify-content:space-between}.character-card{display:flex;align-items:center;gap:2.5mm;break-inside:avoid;margin-bottom:2.5mm}.character-info{padding-left:2mm;display:flex;flex-direction:column}.character-icon-wrapper{display:flex;flex-shrink:0}.character-icon,.character-icon-placeholder{width:13mm;max-height:13mm;object-fit:contain}.character-icon-placeholder{display:flex;align-items:center;justify-content:center;color:#eee;font-weight:700;font-size:6mm}.character-name{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;font-weight:700;margin:0 0 .5mm;color:#1a202c}.character-ability{font-family:Trade Gothic,Trade Gothic Next,Helvetica Neue,Arial,sans-serif;font-size:3.1mm;line-height:1.2;margin:0;color:#222;display:inline-block}.character-card.compact{margin-bottom:1mm}.character-ability.super-compact{font-size:2.7mm}.character-name.super-compact{font-size:3.2mm}.character-icon.super-compact,.character-icon-placeholder.super-compact{width:12mm;max-height:12mm}.character-card.super-compact{margin-bottom:.5mm}.sheet-footer{text-align:center;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.5mm;color:#222;opacity:.7}.asterisk{font-size:5mm}.author-credit{position:absolute;bottom:3mm;right:3mm;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.2mm;color:#222;opacity:.6;text-align:right}.author-credit p{font-size:2.5mm;margin:0}.setup-ability{display:inline-block;white-space:normal;font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif}.jinxes-section{display:flex;break-inside:avoid;margin-top:1mm}.jinxes-list{margin-left:8mm;display:flex;flex-direction:column;width:100%}.jinxes-two-columns{flex-direction:row;gap:5mm}.jinx-column{flex:1;display:flex;flex-direction:column}.jinx-item{display:flex;gap:2.5mm;align-items:center;break-inside:avoid;margin-bottom:2mm}.jinx-icons{display:flex;gap:1mm;flex-shrink:0;align-items:center}.jinx-icon-wrapper{display:flex;flex-shrink:0;align-items:center}.jinx-icon,.jinx-icon-placeholder{width:3.5mm;height:3.5mm;object-fit:contain;scale:2.8}.jinx-icon-placeholder{display:flex;align-items:center;justify-content:center;color:#eee;font-weight:700;font-size:2mm}.jinx-divider{font-family:Dumbledor,serif;font-size:4.6mm;color:#1a202c;line-height:3.5mm;margin:0 .5mm}.jinx-text{font-family:Trade Gothic,Trade Gothic Next,Helvetica Neue,Arial,sans-serif;font-size:2.6mm;line-height:1.2;margin:0;color:#222;padding-top:.5mm}.jinx-item.loric{margin-bottom:1mm}.loric-name{font-family:Goudy Old Style;font-size:3mm;padding-top:0}.loric-spacer{min-width:4mm}.sheet-backing{position:relative;width:210mm;min-height:297mm;max-height:297mm}.sheet-background{width:210mm;min-height:297mm;max-height:297mm;background-image:url(/images/sidebar-desaturated-small.jpg);background-repeat:repeat;background-size:105mm;display:flex;flex-direction:column;align-items:center;justify-content:center}.sheet-back-overlay{position:absolute;top:0;left:0;width:100%;height:100%;mix-blend-mode:multiply;pointer-events:none}.sheet-backing h1{font-family:Unlovable,serif;mix-blend-mode:normal;font-weight:100;font-size:30mm;color:#ae9d7f;text-wrap:wrap;z-index:1;flex-shrink:1;text-align:center;padding:10mm;background-image:url(/images/parchment_texture.jpg);background-clip:text;-webkit-background-clip:text;color:transparent;background-size:100mm;filter:drop-shadow(.5mm .5mm black) drop-shadow(0mm 0mm 1mm black);word-spacing:-10mm;flex:0 1 130mm;display:flex;flex-wrap:wrap;justify-content:center}.sheet-backing h1 .ampersand{font-size:45mm;line-height:30mm;vertical-align:-5mm}.night-order-container{position:absolute;background-image:url(/images/parchment_texture.jpg);background-position:0 -50%;left:0;bottom:20mm;font-family:Dumbledor;z-index:1;background-size:200mm;padding:4mm;box-shadow:inset 0 0 5px #000;display:flex;flex-direction:column;gap:5mm;max-width:185mm}.night-order{z-index:1;display:flex;gap:2mm}.night-order span{color:#222;height:6mm;display:flex;align-items:center;justify-content:flex-end;flex:0 0 23mm}.night-icons{z-index:1;display:flex;align-items:center;gap:2mm;flex-wrap:wrap}.night-order-icon{width:6mm;scale:2.1;filter:drop-shadow(0px 0px 2px #2224)}.title-container{z-index:1;display:flex;justify-content:center}.minor-word{padding:0 8mm;font-size:15mm;word-spacing:-6mm;display:flex}.night-sheet{width:210mm;min-height:297mm;max-height:297mm;display:flex;flex-direction:column;position:relative;overflow:hidden;color:#222}.night-sheet-heading{display:flex;align-items:center;justify-content:space-between}.night-sheet .night-title{font-family:Dumbledor;font-size:7mm;margin:0}.night-sheet .script-title{font-family:Unlovable,serif;font-weight:lighter;background:linear-gradient(-20deg,var(--header-color-light) 50%,var(--header-color-dark));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:11mm;line-height:7mm;margin:-3mm;padding:3mm}.night-sheet .sheet-content{padding:15mm;gap:5mm}.night-sheet-order{display:flex;flex-direction:column}.night-sheet-entry{display:flex;align-items:center;margin-bottom:1mm}.reminder-name{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-weight:700;font-size:3mm}.reminder-text{font-family:Trade Gothic;font-size:2.6mm}.night-sheet-entry p{margin:0}.night-sheet-entry p strong{font-family:Trade Gothic Bold}.night-sheet-entry>img{width:6mm;height:6mm;flex-shrink:0;scale:2;margin-right:2.5mm}.reminder-icon{width:10px;scale:1;opacity:.8;margin-right:4px;margin-bottom:-2px}.info-author-credit{font-family:Goudy Old Style,Goudy Oldstyle,Goudy,Georgia,serif;font-size:3.2mm;color:#222;opacity:.6;text-align:right;margin-bottom:3mm;margin-right:3mm}.info-author-credit p{font-size:2.5mm;margin:0}.info-footer-container{position:relative}.info-footer-background{background-image:url(/images/sidebar-desaturated-small.jpg);background-size:105mm;width:100%;height:20mm}.info-footer-overlay{position:absolute;top:0;left:0;width:100%;height:20mm;background-color:#0003;mix-blend-mode:multiply}.spacer{flex:1 0 0px}
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG3E,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,EAAE,iBAAiB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAG3E,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,UAAU,GACV,QAAQ,GACR,OAAO,GACP,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAC/B,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,IAAI;IACnB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,WAAW,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG,WAAW,CAAC;AAE9D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,QAAQ,GAAG,SAAS,GAAG,eAAe,CAAC;IACnD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAC;IAChC,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResolvedCharacter } from "../types";
|
|
2
|
+
export type FabledOrLoric = {
|
|
3
|
+
name: string;
|
|
4
|
+
note: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function getFabledOrLoric(characters: ResolvedCharacter[]): FabledOrLoric[];
|
|
8
|
+
//# sourceMappingURL=fabledOrLoric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fabledOrLoric.d.ts","sourceRoot":"","sources":["../../src/utils/fabledOrLoric.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,iBAAiB,EAAE,GAC9B,aAAa,EAAE,CAmBjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scriptUtils.d.ts","sourceRoot":"","sources":["../../src/utils/scriptUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGtE,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,iBAAiB,EAAE,GAC9B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"scriptUtils.d.ts","sourceRoot":"","sources":["../../src/utils/scriptUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGtE,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,iBAAiB,EAAE,GAC9B,iBAAiB,CAgBnB;AAED,wBAAgB,UAAU,CACxB,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,UAAQ,GACnB,IAAI,EAAE,CA2DR"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "botc-character-sheet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"vite": "^5.0.8"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"botc-script-checker": "
|
|
34
|
+
"botc-script-checker": "0.2.4"
|
|
35
35
|
}
|
|
36
36
|
}
|