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.
@@ -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;AAGnE,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,gCAkDvE"}
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 x, Fragment as g } from "preact";
2
- var N = 0;
3
- function e(t, i, a, n, o, h) {
4
- i || (i = {});
5
- var s, c, l = i;
6
- if ("ref" in l) for (c in l = {}, i) c == "ref" ? s = i[c] : l[c] = i[c];
7
- var r = { type: t, props: l, key: a, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --N, __i: -1, __u: 0, __source: o, __self: h };
8
- if (typeof t == "function" && (s = t.defaultProps)) for (c in s) l[c] === void 0 && (l[c] = s[c]);
9
- return x.vnode && x.vnode(r), r;
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 J(t) {
12
- if (t.startsWith("#") && (t = t.slice(1)), t.length === 3 && (t = t.split("").map((o) => o + o).join("")), t.length !== 6)
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 i = parseInt(t.slice(0, 2), 16), a = parseInt(t.slice(2, 4), 16), n = parseInt(t.slice(4, 6), 16);
15
- return [i, a, n];
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 L(t, i, a) {
18
- const n = (o) => {
19
- const h = o.toString(16);
20
- return h.length === 1 ? "0" + h : h;
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 `#${n(t)}${n(i)}${n(a)}`;
22
+ return `#${r(i)}${r(t)}${r(n)}`;
23
23
  }
24
- function k(t, i) {
25
- const [a, n, o] = J(t), h = Math.round(a * i), s = Math.round(n * i), c = Math.round(o * i);
26
- return L(h, s, c);
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 u = {
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
- // loric: '#1f5807',
34
+ traveller: "#390758ff",
35
+ loric: "#1f5807"
36
36
  };
37
- function D({
38
- title: t,
39
- author: i,
40
- characters: a,
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 d = [
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: a.townsfolk,
54
- color: u.townsfolk
115
+ chars: n.townsfolk,
116
+ color: f.townsfolk
55
117
  },
56
118
  {
57
119
  key: "outsider",
58
120
  title: "Outsiders",
59
- chars: a.outsider,
60
- color: u.outsider
121
+ chars: n.outsider,
122
+ color: f.outsider
61
123
  },
62
124
  {
63
125
  key: "minion",
64
126
  title: "Minions",
65
- chars: a.minion,
66
- color: u.minion
127
+ chars: n.minion,
128
+ color: f.minion
67
129
  },
68
130
  {
69
131
  key: "demon",
70
132
  title: "Demons",
71
- chars: a.demon,
72
- color: u.demon
133
+ chars: n.demon,
134
+ color: f.demon
73
135
  }
74
- ].filter((m) => m.chars.length > 0), y = k(n, 0.4);
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": n,
82
- "--header-color-dark": y,
83
- transform: s ? "scale(0.952)" : void 0
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(W, { color: n }),
155
+ /* @__PURE__ */ e(E, { color: r }),
94
156
  /* @__PURE__ */ e("div", { className: "sheet-content", children: [
95
157
  /* @__PURE__ */ e(
96
- T,
158
+ C,
97
159
  {
98
- showSwirls: h,
99
- title: t,
100
- author: i,
101
- solidHeader: c
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
- d.map((m, f) => /* @__PURE__ */ e(g, { children: [
167
+ u.map((y, x) => /* @__PURE__ */ e(m, { children: [
106
168
  /* @__PURE__ */ e(
107
- A,
169
+ O,
108
170
  {
109
- title: m.title.toUpperCase(),
110
- characters: m.chars,
111
- sidebarColor: n,
112
- charNameColor: m.color,
113
- iconScale: l,
114
- appearance: r
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
- m.key
178
+ y.key
117
179
  ),
118
- f < d.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
180
+ x < u.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
119
181
  ] })),
120
- o.length > 0 && /* @__PURE__ */ e(g, { children: [
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
- P,
185
+ A,
124
186
  {
125
- jinxes: o,
187
+ fabledAndLoric: d,
188
+ jinxes: a,
126
189
  allCharacters: [
127
- ...a.townsfolk,
128
- ...a.outsider,
129
- ...a.minion,
130
- ...a.demon
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 T({
150
- showSwirls: t,
151
- title: i,
152
- author: a,
153
- solidHeader: n = !1
212
+ function C({
213
+ showSwirls: i,
214
+ title: t,
215
+ author: n,
216
+ solidHeader: r = !1
154
217
  }) {
155
- return console.log("title:", i), /* @__PURE__ */ e(g, { children: [
218
+ return /* @__PURE__ */ e(m, { children: [
156
219
  /* @__PURE__ */ e("h1", { className: "sheet-header", children: [
157
- t && /* @__PURE__ */ e(
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: n ? "normal" : "multiply"
231
+ mixBlendMode: r ? "normal" : "multiply"
169
232
  },
170
- children: i
233
+ children: t
171
234
  }
172
235
  ),
173
- t && /* @__PURE__ */ e(
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
- a && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
244
+ n && /* @__PURE__ */ e("h2", { className: "sheet-author", children: [
182
245
  "by ",
183
- a
246
+ n
184
247
  ] })
185
248
  ] });
186
249
  }
187
- function W({ color: t }) {
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: t } })
253
+ /* @__PURE__ */ e("div", { className: "sidebar-overlay", style: { backgroundColor: i } })
191
254
  ] });
192
255
  }
193
- function A({
194
- title: t,
195
- characters: i,
196
- charNameColor: a,
197
- iconScale: n,
198
- appearance: o = "normal"
256
+ function O({
257
+ title: i,
258
+ characters: t,
259
+ charNameColor: n,
260
+ iconScale: r,
261
+ appearance: a = "normal"
199
262
  }) {
200
- const h = i.length > 8 ? "space-between" : "flex-start";
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: t }),
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: i.slice(0, Math.ceil(i.length / 2)).map((s) => /* @__PURE__ */ e(
205
- v,
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: s,
208
- color: a,
209
- iconScale: n,
210
- appearance: o
270
+ character: h,
271
+ color: n,
272
+ iconScale: r,
273
+ appearance: a
211
274
  },
212
- s.id
275
+ h.id
213
276
  )) }),
214
- /* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: h }, children: i.slice(Math.ceil(i.length / 2), i.length).map((s) => /* @__PURE__ */ e(
215
- v,
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: s,
218
- color: a,
219
- iconScale: n,
220
- appearance: o
280
+ character: h,
281
+ color: n,
282
+ iconScale: r,
283
+ appearance: a
221
284
  },
222
- s.id
285
+ h.id
223
286
  )) })
224
287
  ] })
225
288
  ] });
226
289
  }
227
- function v({
228
- character: t,
229
- color: i,
230
- iconScale: a,
231
- appearance: n = "normal"
290
+ function j({
291
+ character: i,
292
+ color: t,
293
+ iconScale: n,
294
+ appearance: r = "normal"
232
295
  }) {
233
- const o = () => t.wiki_image ? t.wiki_image : t.image ? typeof t.image == "string" ? t.image : t.image[0] : null, h = (m) => {
234
- const f = m.match(/^(.*?)(\[.*?\])$/);
235
- if (f) {
236
- const [, S, M] = f;
237
- return /* @__PURE__ */ e(g, { children: [
238
- S,
239
- /* @__PURE__ */ e("strong", { className: "setup-ability", children: M })
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 m;
243
- }, s = o(), c = n !== "normal" ? `character-card ${n}` : "character-card", l = n === "super-compact" ? "character-icon super-compact" : "character-icon", r = n === "super-compact" ? "character-icon-placeholder super-compact" : "character-icon-placeholder", d = n === "super-compact" ? "character-name super-compact" : "character-name", y = n === "super-compact" ? "character-ability super-compact" : "character-ability";
244
- return /* @__PURE__ */ e("div", { className: c, children: [
245
- /* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: s ? /* @__PURE__ */ e(
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: s,
249
- alt: t.name,
250
- className: l,
251
- style: { scale: a.toString() }
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: r,
257
- style: { color: i, scale: a.toString() },
258
- children: t.name.charAt(0)
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: i }, children: t.name }),
263
- /* @__PURE__ */ e("p", { className: y, children: h(t.ability) })
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 P({ jinxes: t, allCharacters: i }) {
268
- const a = new Map(
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 w = /* @__PURE__ */ new Set([
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
- ]), p = (t, i) => w.has(t) || i === 0 && w.has(t.toLowerCase()), C = (t) => t.split(/\s+/).reduce((i, a, n, o) => {
327
- const h = p(a, n), s = n > 0 && p(o[n - 1], n - 1);
328
- if (n === 0 || h !== s) {
329
- const l = [];
330
- for (let d = n; d < o.length && p(o[d], d) === h; d++)
331
- l.push(o[d]);
332
- const r = i.length > 0;
333
- i.push(
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: h ? "minor-word" : void 0,
364
+ className: c ? "minor-word" : void 0,
338
365
  children: [
339
- r && " ",
340
- l.join(" ")
366
+ s && " ",
367
+ o.join(" ")
341
368
  ]
342
369
  },
343
- n
370
+ r
344
371
  )
345
372
  );
346
373
  }
347
- return i;
348
- }, []), E = ({
349
- title: t,
350
- color: i,
351
- includeMargins: a,
352
- formatMinorWords: n = !1,
353
- displayNightOrder: o = !1,
354
- firstNightOrder: h = [],
355
- otherNightOrder: s = []
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: a ? "scale(0.952)" : void 0
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 l = t.split("&");
367
- return l.map((r, d) => /* @__PURE__ */ e(g, { children: [
368
- n ? C(r) : r,
369
- d < l.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
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
- o && /* @__PURE__ */ e(g, { children: /* @__PURE__ */ e("div", { className: "night-order-container", children: [
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: h.map((l) => {
376
- const r = b(l);
377
- return r && /* @__PURE__ */ e("img", { src: r, class: "night-order-icon" });
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: s.map((l) => {
383
- const r = b(l);
384
- return r && /* @__PURE__ */ e("img", { src: r, class: "night-order-icon" });
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: i }
420
+ style: { backgroundColor: t }
394
421
  }
395
422
  )
396
423
  ]
397
424
  }
398
- ), O = (t) => /* @__PURE__ */ e(g, { children: [
399
- /* @__PURE__ */ e(I, { ...t, children: [
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: t.title })
429
+ /* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
403
430
  ] }),
404
- /* @__PURE__ */ e("div", { className: "night-sheet-order", children: t.firstNightOrder.map((i) => /* @__PURE__ */ e(j, { entry: i, night: "first" })) })
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(I, { ...t, children: [
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: t.title })
436
+ /* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
410
437
  ] }),
411
- /* @__PURE__ */ e("div", { className: "night-sheet-order", children: t.otherNightOrder.map((i) => /* @__PURE__ */ e(j, { entry: i, night: "first" })) })
438
+ /* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.otherNightOrder.map((t) => /* @__PURE__ */ e(M, { entry: t, night: "other" })) })
412
439
  ] })
413
- ] }), I = (t) => {
414
- const i = k(t.color, 0.4);
415
- return /* @__PURE__ */ e(g, { children: /* @__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: t.includeMargins ? "scale(0.952)" : void 0,
421
- "--header-color-light": t.color,
422
- "--header-color-dark": i
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: t.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: t.color }
471
+ style: { backgroundColor: i.color }
445
472
  }
446
473
  )
447
474
  ] })
448
475
  ]
449
476
  }
450
477
  ) });
451
- }, z = () => /* @__PURE__ */ e("img", { className: "reminder-icon", src: "/images/reminder.png" }), j = (t) => {
452
- const i = b(t.entry), { reminderText: a, name: n } = R(t.entry, t.night), o = typeof t.entry == "string" ? "#222" : u[t.entry.team];
453
- if (!a)
454
- return console.warn("No reminder text found for:", t.entry), /* @__PURE__ */ e(g, {});
455
- const h = (c) => c.split(":reminder:").map((l, r) => r % 2 === 0 ? l : /* @__PURE__ */ e(z, {}));
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: i }),
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: o }, children: n }),
460
- /* @__PURE__ */ e("p", { className: "reminder-text", children: ((c) => {
461
- const l = c.split("*").map((r, d) => d % 2 === 0 ? r : /* @__PURE__ */ e("strong", { children: r })).map((r) => typeof r == "string" ? h(r) : r);
462
- return /* @__PURE__ */ e(g, { children: l });
463
- })(a) })
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
- }, R = (t, i) => {
467
- if (typeof t == "object") {
468
- const a = i === "first" ? t.firstNightReminder : t.otherNightReminder, n = t.name;
469
- return console.log("night, entry, reminderText:", i, t, a), { reminderText: a, name: n };
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 a = H[t], n = i === "first" ? a.first : a.other ?? "", o = a.name;
472
- return { reminderText: n, name: o };
498
+ const n = B[i], r = t === "first" ? n.first : n.other ?? "", a = n.name;
499
+ return { reminderText: r, name: a };
473
500
  }
474
- }, H = {
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
- }, G = [
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 _(t) {
1466
- const i = {
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 a of t)
1475
- i[a.team].push(a);
1476
- return i;
1518
+ for (const n of i)
1519
+ t[n.team].push(n);
1520
+ return t;
1477
1521
  }
1478
- function B(t, i = !1) {
1479
- const a = new Set(t.map((o) => o.id.toLowerCase())), n = [];
1480
- for (const o of G) {
1481
- const [h, s] = o.characters;
1482
- a.has(h) && a.has(s) && (i && o.oldJinx ? n.push({
1483
- characters: o.characters,
1484
- jinx: o.oldJinx
1485
- }) : n.push({
1486
- characters: o.characters,
1487
- jinx: o.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 o of t) {
1491
- const h = typeof o == "object" && o !== null, s = "jinxes" in o;
1492
- if (!h || !s) continue;
1493
- const c = o, l = c.id.toLowerCase();
1494
- if (a.has(l) && c.jinxes)
1495
- for (const r of c.jinxes) {
1496
- const d = r.id.toLowerCase();
1497
- a.has(d) && (n.some(
1498
- (m) => m.characters[0] === l && m.characters[1] === d || m.characters[0] === d && m.characters[1] === l
1499
- ) || n.push({
1500
- characters: [l, d],
1501
- jinx: r.reason
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 n;
1549
+ return r;
1506
1550
  }
1507
- function F({ script: t, options: i, nightOrders: a }) {
1508
- var n, o, h, s;
1551
+ function U({ script: i, options: t, nightOrders: n }) {
1552
+ var a, c;
1509
1553
  return /* @__PURE__ */ e("div", { className: "sheet-wrapper", children: [
1510
- /* @__PURE__ */ e(
1511
- D,
1512
- {
1513
- title: ((n = t.metadata) == null ? void 0 : n.name) || "Custom Script",
1514
- author: i.showAuthor ? (o = t.metadata) == null ? void 0 : o.author : void 0,
1515
- characters: _(t.characters),
1516
- color: i.color,
1517
- jinxes: i.showJinxes ? B(t.characters, i.useOldJinxes) : [],
1518
- showSwirls: i.showSwirls,
1519
- includeMargins: i.includeMargins,
1520
- solidTitle: i.solidTitle,
1521
- iconScale: i.iconScale,
1522
- appearance: i.appearance
1523
- }
1524
- ),
1525
- /* @__PURE__ */ e("div", { style: "break-after:page;" }),
1526
- i.showBackingSheet && /* @__PURE__ */ e(g, { children: [
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
- E,
1578
+ R,
1529
1579
  {
1530
- title: ((h = t.metadata) == null ? void 0 : h.name) || "Custom Script",
1531
- color: i.color,
1532
- includeMargins: i.includeMargins,
1533
- firstNightOrder: a.first,
1534
- otherNightOrder: a.other,
1535
- formatMinorWords: i.formatMinorWords,
1536
- displayNightOrder: i.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
- i.showNightSheet && /* @__PURE__ */ e(g, { children: [
1591
+ t.showNightSheet && /* @__PURE__ */ e(m, { children: [
1542
1592
  /* @__PURE__ */ e(
1543
- O,
1593
+ H,
1544
1594
  {
1545
- firstNightOrder: a.first,
1546
- otherNightOrder: a.other,
1547
- includeMargins: i.includeMargins,
1548
- title: ((s = t.metadata) == null ? void 0 : s.name) || "Custom Script",
1549
- color: i.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
- D as CharacterSheet,
1558
- F as FancyDoc,
1559
- O as NightSheet,
1560
- E as SheetBack,
1561
- k as darken,
1562
- J as parseRgb,
1563
- L as rgbString
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;AAEtE,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;CACrD;AAED,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,MAAM,EACN,UAAU,EACV,KAAiB,EACjB,MAAW,EACX,UAAiB,EACjB,cAAsB,EACtB,UAAkB,EAClB,SAAe,EACf,UAAqB,GACtB,EAAE,mBAAmB,gCAkGrB"}
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;scale:1.6;flex-shrink:0;margin-right:2mm}.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}
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
@@ -12,6 +12,7 @@ export interface GroupedCharacters {
12
12
  demon: ResolvedCharacter[];
13
13
  traveller: ResolvedCharacter[];
14
14
  fabled: ResolvedCharacter[];
15
+ loric: ResolvedCharacter[];
15
16
  }
16
17
  export interface Jinx {
17
18
  characters: [string, string];
@@ -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;CAC7B;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"}
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,CAenB;AAED,wBAAgB,UAAU,CACxB,UAAU,EAAE,iBAAiB,EAAE,EAC/B,YAAY,UAAQ,GACnB,IAAI,EAAE,CA2DR"}
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.11.0-beta.2",
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": "^0.1.1"
34
+ "botc-script-checker": "0.2.4"
35
35
  }
36
36
  }