botc-character-sheet 0.15.2-beta.0 → 0.16.1
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
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;AAGnE,OAAO,gBAAgB,CAAC;AAExB,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,
|
|
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,OAAO,gBAAgB,CAAC;AAExB,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,gCA2DvE"}
|
|
@@ -4,7 +4,8 @@ interface JinxesSectionProps {
|
|
|
4
4
|
jinxes: Jinx[];
|
|
5
5
|
allCharacters: ResolvedCharacter[];
|
|
6
6
|
fabledAndLoric: FabledOrLoric[];
|
|
7
|
+
bootleggerRules: string[];
|
|
7
8
|
}
|
|
8
|
-
export declare function JinxesAndSpecial({ jinxes, allCharacters, fabledAndLoric, }: JinxesSectionProps): import("preact").JSX.Element | null;
|
|
9
|
+
export declare function JinxesAndSpecial({ jinxes, allCharacters, fabledAndLoric, bootleggerRules, }: JinxesSectionProps): import("preact").JSX.Element | null;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=JinxesAndSpecial.d.ts.map
|
|
@@ -1 +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;
|
|
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;IAChC,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,aAAa,EACb,cAAc,EACd,eAAe,GAChB,EAAE,kBAAkB,uCAgGpB"}
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { options as
|
|
2
|
-
var
|
|
1
|
+
import { options as N, Fragment as f } from "preact";
|
|
2
|
+
var C = 0;
|
|
3
3
|
function e(i, t, a, r, n, h) {
|
|
4
4
|
t || (t = {});
|
|
5
5
|
var l, o, s = t;
|
|
6
6
|
if ("ref" in s) for (o in s = {}, t) o == "ref" ? l = t[o] : s[o] = t[o];
|
|
7
|
-
var
|
|
7
|
+
var c = { type: i, props: s, key: a, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --C, __i: -1, __u: 0, __source: n, __self: h };
|
|
8
8
|
if (typeof i == "function" && (l = i.defaultProps)) for (o in l) s[o] === void 0 && (s[o] = l[o]);
|
|
9
|
-
return
|
|
9
|
+
return N.vnode && N.vnode(c), c;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function z(i) {
|
|
12
12
|
if (i.startsWith("#") && (i = i.slice(1)), i.length === 3 && (i = i.split("").map((n) => n + n).join("")), i.length !== 6)
|
|
13
13
|
throw new Error("Invalid HEX color.");
|
|
14
14
|
const t = parseInt(i.slice(0, 2), 16), a = parseInt(i.slice(2, 4), 16), r = parseInt(i.slice(4, 6), 16);
|
|
15
15
|
return [t, a, r];
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function H(i, t, a) {
|
|
18
18
|
const r = (n) => {
|
|
19
19
|
const h = n.toString(16);
|
|
20
20
|
return h.length === 1 ? "0" + h : h;
|
|
@@ -22,10 +22,10 @@ function z(i, t, a) {
|
|
|
22
22
|
return `#${r(i)}${r(t)}${r(a)}`;
|
|
23
23
|
}
|
|
24
24
|
function R(i, t) {
|
|
25
|
-
const [a, r, n] =
|
|
26
|
-
return
|
|
25
|
+
const [a, r, n] = z(i), h = Math.round(a * t), l = Math.round(r * t), o = Math.round(n * t);
|
|
26
|
+
return H(h, l, o);
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const b = {
|
|
29
29
|
townsfolk: "#00469e",
|
|
30
30
|
outsider: "#00469e",
|
|
31
31
|
minion: "#580709",
|
|
@@ -34,10 +34,10 @@ const p = {
|
|
|
34
34
|
traveller: "#390758ff",
|
|
35
35
|
loric: "#1f5807"
|
|
36
36
|
};
|
|
37
|
-
function
|
|
37
|
+
function j(i) {
|
|
38
38
|
return Array.isArray(i) ? i : [i];
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function O(i, t = 20) {
|
|
41
41
|
if (i.length === 0)
|
|
42
42
|
return "transparent";
|
|
43
43
|
if (i.length === 1) {
|
|
@@ -50,8 +50,8 @@ function A(i, t = 20) {
|
|
|
50
50
|
}).join(", ");
|
|
51
51
|
return `linear-gradient(${t}deg, ${a})`;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
const a =
|
|
53
|
+
function S(i, t = 90) {
|
|
54
|
+
const a = j(i);
|
|
55
55
|
if (a.length === 1)
|
|
56
56
|
return a[0];
|
|
57
57
|
const r = a.map((n, h) => {
|
|
@@ -60,58 +60,87 @@ function j(i, t = 90) {
|
|
|
60
60
|
}).join(", ");
|
|
61
61
|
return `linear-gradient(${t}deg, ${r})`;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function _({
|
|
64
64
|
jinxes: i,
|
|
65
65
|
allCharacters: t,
|
|
66
|
-
fabledAndLoric: a
|
|
66
|
+
fabledAndLoric: a,
|
|
67
|
+
bootleggerRules: r
|
|
67
68
|
}) {
|
|
68
|
-
const
|
|
69
|
+
const n = new Map(
|
|
69
70
|
t.map((m) => [m.id.toLowerCase(), m])
|
|
70
|
-
),
|
|
71
|
-
let
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
), h = i.length > 0 && a.length > 0, l = i.length > 0 && a.length === 0, o = i.length === 0 && a.length > 0, s = [...i, ...a], c = h || i.length > 4 || a.length > 4, d = c ? Math.ceil(s.length / 2) : s.length;
|
|
72
|
+
let y, u;
|
|
73
|
+
if (h)
|
|
74
|
+
y = i.map((m, g) => /* @__PURE__ */ e(x, { jinx: m, charMap: n }, `lc-${g}`)), u = a.map((m, g) => /* @__PURE__ */ e(
|
|
75
|
+
v,
|
|
76
|
+
{
|
|
77
|
+
item: m,
|
|
78
|
+
bootleggerRules: r
|
|
79
|
+
},
|
|
80
|
+
`rc-${g}`
|
|
81
|
+
));
|
|
82
|
+
else if (l && c)
|
|
83
|
+
y = i.slice(0, d).map((m, g) => /* @__PURE__ */ e(x, { jinx: m, charMap: n }, `lc-${g}`)), u = i.slice(d).map((m, g) => /* @__PURE__ */ e(x, { jinx: m, charMap: n }, `rc-${g}`));
|
|
84
|
+
else if (o && c)
|
|
85
|
+
y = a.slice(0, d).map((m, g) => /* @__PURE__ */ e(
|
|
86
|
+
v,
|
|
87
|
+
{
|
|
88
|
+
item: m,
|
|
89
|
+
bootleggerRules: r
|
|
90
|
+
},
|
|
91
|
+
`lc-${g}`
|
|
92
|
+
)), u = a.slice(d).map((m, g) => /* @__PURE__ */ e(
|
|
93
|
+
v,
|
|
94
|
+
{
|
|
95
|
+
item: m,
|
|
96
|
+
bootleggerRules: r
|
|
97
|
+
},
|
|
98
|
+
`rc-${g}`
|
|
99
|
+
));
|
|
80
100
|
else if (l)
|
|
81
|
-
|
|
101
|
+
y = i.map((m, g) => /* @__PURE__ */ e(x, { jinx: m, charMap: n }, `lc-${g}`));
|
|
102
|
+
else if (o)
|
|
103
|
+
y = a.map((m, g) => /* @__PURE__ */ e(
|
|
104
|
+
v,
|
|
105
|
+
{
|
|
106
|
+
item: m,
|
|
107
|
+
bootleggerRules: r
|
|
108
|
+
},
|
|
109
|
+
`lc-${g}`
|
|
110
|
+
));
|
|
82
111
|
else
|
|
83
112
|
return null;
|
|
84
113
|
return /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
|
|
85
114
|
/* @__PURE__ */ e("h2", { className: "section-title" }),
|
|
86
|
-
|
|
115
|
+
u ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
|
|
87
116
|
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
88
|
-
...
|
|
117
|
+
...y
|
|
89
118
|
] }),
|
|
90
119
|
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
91
|
-
...
|
|
120
|
+
...u
|
|
92
121
|
] })
|
|
93
122
|
] }) : /* @__PURE__ */ e("div", { className: "jinxes-list", children: [
|
|
94
|
-
...
|
|
123
|
+
...y
|
|
95
124
|
] })
|
|
96
125
|
] });
|
|
97
126
|
}
|
|
98
|
-
const
|
|
127
|
+
const x = ({ charMap: i, jinx: t }) => {
|
|
99
128
|
const a = i.get(t.characters[0]), r = i.get(t.characters[1]);
|
|
100
129
|
return /* @__PURE__ */ e("div", { className: "jinx-item", children: [
|
|
101
130
|
/* @__PURE__ */ e("div", { className: "jinx-icons", children: [
|
|
102
|
-
a && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children:
|
|
131
|
+
a && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: w(a) ? /* @__PURE__ */ e(
|
|
103
132
|
"img",
|
|
104
133
|
{
|
|
105
|
-
src:
|
|
134
|
+
src: w(a),
|
|
106
135
|
alt: a.name,
|
|
107
136
|
className: "jinx-icon"
|
|
108
137
|
}
|
|
109
138
|
) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: a.name.charAt(0) }) }),
|
|
110
139
|
/* @__PURE__ */ e("span", { className: "jinx-divider" }),
|
|
111
|
-
r && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children:
|
|
140
|
+
r && /* @__PURE__ */ e("div", { className: "jinx-icon-wrapper", children: w(r) ? /* @__PURE__ */ e(
|
|
112
141
|
"img",
|
|
113
142
|
{
|
|
114
|
-
src:
|
|
143
|
+
src: w(r),
|
|
115
144
|
alt: r.name,
|
|
116
145
|
className: "jinx-icon"
|
|
117
146
|
}
|
|
@@ -120,20 +149,25 @@ const b = ({ charMap: i, jinx: t }) => {
|
|
|
120
149
|
/* @__PURE__ */ e("p", { className: "jinx-text", children: t.jinx })
|
|
121
150
|
] });
|
|
122
151
|
};
|
|
123
|
-
function
|
|
152
|
+
function v({
|
|
153
|
+
item: i,
|
|
154
|
+
bootleggerRules: t
|
|
155
|
+
}) {
|
|
156
|
+
const a = i.name.toLowerCase() === "bootlegger";
|
|
124
157
|
return /* @__PURE__ */ e("div", { className: "jinx-item loric", children: [
|
|
125
158
|
/* @__PURE__ */ e("div", { className: "loric-spacer" }),
|
|
126
159
|
i.image ? /* @__PURE__ */ e("img", { src: i.image, alt: i.name, className: "jinx-icon loric" }) : /* @__PURE__ */ e("div", { className: "jinx-icon-placeholder", children: i.name.charAt(0) }),
|
|
127
160
|
/* @__PURE__ */ e("div", { className: "loric-text-container", children: [
|
|
128
161
|
/* @__PURE__ */ e("p", { className: "jinx-text loric-name", children: i.name }),
|
|
129
|
-
/* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: i.note })
|
|
162
|
+
/* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: i.note }),
|
|
163
|
+
a && t.map((r, n) => /* @__PURE__ */ e("p", { className: "jinx-text loric-text", children: r }, `bootlegger-rule-${n}`))
|
|
130
164
|
] })
|
|
131
165
|
] });
|
|
132
166
|
}
|
|
133
|
-
function
|
|
167
|
+
function w(i) {
|
|
134
168
|
return i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
|
|
135
169
|
}
|
|
136
|
-
const
|
|
170
|
+
const B = [
|
|
137
171
|
{
|
|
138
172
|
characters: [
|
|
139
173
|
"alchemist",
|
|
@@ -1112,7 +1146,7 @@ const _ = [
|
|
|
1112
1146
|
oldJinx: "If the Exorcist chooses the Yaggababble, the Yaggababble ability does not kill tonight."
|
|
1113
1147
|
}
|
|
1114
1148
|
];
|
|
1115
|
-
function
|
|
1149
|
+
function G(i) {
|
|
1116
1150
|
const t = {
|
|
1117
1151
|
townsfolk: [],
|
|
1118
1152
|
outsider: [],
|
|
@@ -1130,9 +1164,9 @@ function B(i) {
|
|
|
1130
1164
|
}
|
|
1131
1165
|
return t;
|
|
1132
1166
|
}
|
|
1133
|
-
function
|
|
1167
|
+
function $(i, t = !1) {
|
|
1134
1168
|
const a = new Set(i.map((n) => n.id.toLowerCase())), r = [];
|
|
1135
|
-
for (const n of
|
|
1169
|
+
for (const n of B) {
|
|
1136
1170
|
const [h, l] = n.characters;
|
|
1137
1171
|
a.has(h) && a.has(l) && (t && n.oldJinx ? r.push({
|
|
1138
1172
|
characters: n.characters,
|
|
@@ -1148,23 +1182,23 @@ function G(i, t = !1) {
|
|
|
1148
1182
|
console.log("char.jinxes:", n.jinxes);
|
|
1149
1183
|
const o = n, s = o.id.toLowerCase();
|
|
1150
1184
|
if (a.has(s) && o.jinxes)
|
|
1151
|
-
for (const
|
|
1152
|
-
const
|
|
1153
|
-
if (console.log(`${n.id} is jinxed with ${
|
|
1185
|
+
for (const c of o.jinxes) {
|
|
1186
|
+
const d = c.id.toLowerCase();
|
|
1187
|
+
if (console.log(`${n.id} is jinxed with ${d}`), a.has(d) || (console.log("characterIds doesnt contain charId", d), console.log("characterIds:", a)), a.has(d)) {
|
|
1154
1188
|
const y = r.some(
|
|
1155
|
-
(
|
|
1189
|
+
(u) => u.characters[0] === s && u.characters[1] === d || u.characters[0] === d && u.characters[1] === s
|
|
1156
1190
|
);
|
|
1157
1191
|
console.log("Jinx already exists:", y), y || r.push({
|
|
1158
|
-
characters: [s,
|
|
1159
|
-
jinx:
|
|
1192
|
+
characters: [s, d],
|
|
1193
|
+
jinx: c.reason
|
|
1160
1194
|
});
|
|
1161
1195
|
}
|
|
1162
1196
|
}
|
|
1163
1197
|
}
|
|
1164
1198
|
return r;
|
|
1165
1199
|
}
|
|
1166
|
-
const
|
|
1167
|
-
function
|
|
1200
|
+
const M = (i) => i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
|
|
1201
|
+
function J(i, t, a) {
|
|
1168
1202
|
const r = [];
|
|
1169
1203
|
return t.forEach((n) => {
|
|
1170
1204
|
n.characters[0] === i.id ? r.push(n.characters[1]) : n.characters[1] === i.id && r.push(n.characters[0]);
|
|
@@ -1172,7 +1206,7 @@ function M(i, t, a) {
|
|
|
1172
1206
|
(n) => r.includes(n.id)
|
|
1173
1207
|
);
|
|
1174
1208
|
}
|
|
1175
|
-
function
|
|
1209
|
+
function V({
|
|
1176
1210
|
title: i,
|
|
1177
1211
|
author: t,
|
|
1178
1212
|
characters: a,
|
|
@@ -1182,43 +1216,44 @@ function $({
|
|
|
1182
1216
|
includeMargins: l = !1,
|
|
1183
1217
|
solidTitle: o = !1,
|
|
1184
1218
|
iconScale: s = 1.6,
|
|
1185
|
-
appearance:
|
|
1186
|
-
fabledOrLoric:
|
|
1187
|
-
inlineJinxIcons: y = !1
|
|
1219
|
+
appearance: c = "normal",
|
|
1220
|
+
fabledOrLoric: d = [],
|
|
1221
|
+
inlineJinxIcons: y = !1,
|
|
1222
|
+
bootleggerRules: u = []
|
|
1188
1223
|
}) {
|
|
1189
1224
|
const m = [
|
|
1190
1225
|
{
|
|
1191
1226
|
key: "townsfolk",
|
|
1192
1227
|
title: "Townsfolk",
|
|
1193
1228
|
chars: a.townsfolk,
|
|
1194
|
-
color:
|
|
1229
|
+
color: b.townsfolk
|
|
1195
1230
|
},
|
|
1196
1231
|
{
|
|
1197
1232
|
key: "outsider",
|
|
1198
1233
|
title: "Outsiders",
|
|
1199
1234
|
chars: a.outsider,
|
|
1200
|
-
color:
|
|
1235
|
+
color: b.outsider
|
|
1201
1236
|
},
|
|
1202
1237
|
{
|
|
1203
1238
|
key: "minion",
|
|
1204
1239
|
title: "Minions",
|
|
1205
1240
|
chars: a.minion,
|
|
1206
|
-
color:
|
|
1241
|
+
color: b.minion
|
|
1207
1242
|
},
|
|
1208
1243
|
{
|
|
1209
1244
|
key: "demon",
|
|
1210
1245
|
title: "Demons",
|
|
1211
1246
|
chars: a.demon,
|
|
1212
|
-
color:
|
|
1247
|
+
color: b.demon
|
|
1213
1248
|
}
|
|
1214
|
-
].filter((
|
|
1249
|
+
].filter((p) => p.chars.length > 0), g = j(r), P = O(g, 20), W = ["character-sheet", c !== "normal" ? `appearance-${c}` : ""].filter(Boolean).join(" ");
|
|
1215
1250
|
return /* @__PURE__ */ e(
|
|
1216
1251
|
"div",
|
|
1217
1252
|
{
|
|
1218
|
-
className:
|
|
1253
|
+
className: W,
|
|
1219
1254
|
id: "character-sheet",
|
|
1220
1255
|
style: {
|
|
1221
|
-
"--header-gradient":
|
|
1256
|
+
"--header-gradient": P,
|
|
1222
1257
|
transform: l ? "scale(0.952)" : void 0
|
|
1223
1258
|
},
|
|
1224
1259
|
children: [
|
|
@@ -1229,10 +1264,10 @@ function $({
|
|
|
1229
1264
|
src: "/images/parchment_texture_a4_lightened.jpg"
|
|
1230
1265
|
}
|
|
1231
1266
|
),
|
|
1232
|
-
/* @__PURE__ */ e(
|
|
1267
|
+
/* @__PURE__ */ e(U, { color: r }),
|
|
1233
1268
|
/* @__PURE__ */ e("div", { className: "sheet-content", children: [
|
|
1234
1269
|
/* @__PURE__ */ e(
|
|
1235
|
-
|
|
1270
|
+
F,
|
|
1236
1271
|
{
|
|
1237
1272
|
showSwirls: h,
|
|
1238
1273
|
title: i,
|
|
@@ -1241,13 +1276,13 @@ function $({
|
|
|
1241
1276
|
}
|
|
1242
1277
|
),
|
|
1243
1278
|
/* @__PURE__ */ e("div", { className: "characters-grid", children: [
|
|
1244
|
-
m.map((
|
|
1279
|
+
m.map((p, E) => /* @__PURE__ */ e(f, { children: [
|
|
1245
1280
|
/* @__PURE__ */ e(
|
|
1246
|
-
|
|
1281
|
+
Y,
|
|
1247
1282
|
{
|
|
1248
|
-
title:
|
|
1249
|
-
characters:
|
|
1250
|
-
charNameColor:
|
|
1283
|
+
title: p.title.toUpperCase(),
|
|
1284
|
+
characters: p.chars,
|
|
1285
|
+
charNameColor: p.color,
|
|
1251
1286
|
iconScale: s,
|
|
1252
1287
|
jinxes: n,
|
|
1253
1288
|
allCharacters: [
|
|
@@ -1258,23 +1293,24 @@ function $({
|
|
|
1258
1293
|
],
|
|
1259
1294
|
inlineJinxIcons: y
|
|
1260
1295
|
},
|
|
1261
|
-
|
|
1296
|
+
p.key
|
|
1262
1297
|
),
|
|
1263
|
-
|
|
1298
|
+
E < m.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
|
|
1264
1299
|
] })),
|
|
1265
|
-
(n.length > 0 ||
|
|
1300
|
+
(n.length > 0 || d.length > 0) && /* @__PURE__ */ e(f, { children: [
|
|
1266
1301
|
/* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" }),
|
|
1267
1302
|
/* @__PURE__ */ e(
|
|
1268
|
-
|
|
1303
|
+
_,
|
|
1269
1304
|
{
|
|
1270
|
-
fabledAndLoric:
|
|
1305
|
+
fabledAndLoric: d,
|
|
1271
1306
|
jinxes: n,
|
|
1272
1307
|
allCharacters: [
|
|
1273
1308
|
...a.townsfolk,
|
|
1274
1309
|
...a.outsider,
|
|
1275
1310
|
...a.minion,
|
|
1276
1311
|
...a.demon
|
|
1277
|
-
]
|
|
1312
|
+
],
|
|
1313
|
+
bootleggerRules: u
|
|
1278
1314
|
}
|
|
1279
1315
|
)
|
|
1280
1316
|
] })
|
|
@@ -1292,13 +1328,13 @@ function $({
|
|
|
1292
1328
|
}
|
|
1293
1329
|
);
|
|
1294
1330
|
}
|
|
1295
|
-
function
|
|
1331
|
+
function F({
|
|
1296
1332
|
showSwirls: i,
|
|
1297
1333
|
title: t,
|
|
1298
1334
|
author: a,
|
|
1299
1335
|
solidHeader: r = !1
|
|
1300
1336
|
}) {
|
|
1301
|
-
return /* @__PURE__ */ e(
|
|
1337
|
+
return /* @__PURE__ */ e(f, { children: [
|
|
1302
1338
|
/* @__PURE__ */ e("h1", { className: "sheet-header", children: [
|
|
1303
1339
|
i && /* @__PURE__ */ e(
|
|
1304
1340
|
"img",
|
|
@@ -1330,8 +1366,8 @@ function V({
|
|
|
1330
1366
|
] })
|
|
1331
1367
|
] });
|
|
1332
1368
|
}
|
|
1333
|
-
function
|
|
1334
|
-
const t =
|
|
1369
|
+
function U({ color: i }) {
|
|
1370
|
+
const t = S(i, 180);
|
|
1335
1371
|
return /* @__PURE__ */ e("div", { className: "sidebar-container", children: [
|
|
1336
1372
|
/* @__PURE__ */ e("div", { className: "sidebar-background" }),
|
|
1337
1373
|
/* @__PURE__ */ e(
|
|
@@ -1343,7 +1379,7 @@ function F({ color: i }) {
|
|
|
1343
1379
|
)
|
|
1344
1380
|
] });
|
|
1345
1381
|
}
|
|
1346
|
-
function
|
|
1382
|
+
function Y({
|
|
1347
1383
|
title: i,
|
|
1348
1384
|
characters: t,
|
|
1349
1385
|
charNameColor: a,
|
|
@@ -1357,23 +1393,23 @@ function U({
|
|
|
1357
1393
|
/* @__PURE__ */ e("h2", { className: "section-title", children: i }),
|
|
1358
1394
|
/* @__PURE__ */ e("div", { className: "character-list", children: [
|
|
1359
1395
|
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: o }, children: t.slice(0, Math.ceil(t.length / 2)).map((s) => /* @__PURE__ */ e(
|
|
1360
|
-
|
|
1396
|
+
D,
|
|
1361
1397
|
{
|
|
1362
1398
|
character: s,
|
|
1363
1399
|
color: a,
|
|
1364
1400
|
iconScale: r,
|
|
1365
|
-
jinxedCharacters:
|
|
1401
|
+
jinxedCharacters: J(s, n, h),
|
|
1366
1402
|
inlineJinxIcons: l
|
|
1367
1403
|
},
|
|
1368
1404
|
s.id
|
|
1369
1405
|
)) }),
|
|
1370
1406
|
/* @__PURE__ */ e("div", { className: "character-column", style: { justifyContent: o }, children: t.slice(Math.ceil(t.length / 2), t.length).map((s) => /* @__PURE__ */ e(
|
|
1371
|
-
|
|
1407
|
+
D,
|
|
1372
1408
|
{
|
|
1373
1409
|
character: s,
|
|
1374
1410
|
color: a,
|
|
1375
1411
|
iconScale: r,
|
|
1376
|
-
jinxedCharacters:
|
|
1412
|
+
jinxedCharacters: J(s, n, h),
|
|
1377
1413
|
inlineJinxIcons: l
|
|
1378
1414
|
},
|
|
1379
1415
|
s.id
|
|
@@ -1381,7 +1417,7 @@ function U({
|
|
|
1381
1417
|
] })
|
|
1382
1418
|
] });
|
|
1383
1419
|
}
|
|
1384
|
-
function
|
|
1420
|
+
function D({
|
|
1385
1421
|
character: i,
|
|
1386
1422
|
color: t,
|
|
1387
1423
|
iconScale: a,
|
|
@@ -1391,14 +1427,14 @@ function J({
|
|
|
1391
1427
|
const h = (o) => {
|
|
1392
1428
|
const s = o.match(/^(.*?)(\[.*?\])$/);
|
|
1393
1429
|
if (s) {
|
|
1394
|
-
const [,
|
|
1395
|
-
return /* @__PURE__ */ e(
|
|
1396
|
-
|
|
1397
|
-
/* @__PURE__ */ e("strong", { className: "setup-ability", children:
|
|
1430
|
+
const [, c, d] = s;
|
|
1431
|
+
return /* @__PURE__ */ e(f, { children: [
|
|
1432
|
+
c,
|
|
1433
|
+
/* @__PURE__ */ e("strong", { className: "setup-ability", children: d })
|
|
1398
1434
|
] });
|
|
1399
1435
|
}
|
|
1400
1436
|
return o;
|
|
1401
|
-
}, l =
|
|
1437
|
+
}, l = M(i);
|
|
1402
1438
|
return /* @__PURE__ */ e("div", { className: "character-card", children: [
|
|
1403
1439
|
/* @__PURE__ */ e("div", { className: "character-icon-wrapper", children: l ? /* @__PURE__ */ e(
|
|
1404
1440
|
"img",
|
|
@@ -1420,7 +1456,7 @@ function J({
|
|
|
1420
1456
|
/* @__PURE__ */ e("h3", { className: "character-name", style: { color: t }, children: [
|
|
1421
1457
|
i.name,
|
|
1422
1458
|
n && r.length > 0 && /* @__PURE__ */ e("span", { className: "inline-jinx-icons", children: r.map((o) => {
|
|
1423
|
-
const s =
|
|
1459
|
+
const s = M(o);
|
|
1424
1460
|
return s ? /* @__PURE__ */ e(
|
|
1425
1461
|
"img",
|
|
1426
1462
|
{
|
|
@@ -1445,7 +1481,7 @@ function J({
|
|
|
1445
1481
|
] })
|
|
1446
1482
|
] });
|
|
1447
1483
|
}
|
|
1448
|
-
const
|
|
1484
|
+
const L = /* @__PURE__ */ new Set([
|
|
1449
1485
|
"the",
|
|
1450
1486
|
"of",
|
|
1451
1487
|
"in",
|
|
@@ -1465,20 +1501,20 @@ const D = /* @__PURE__ */ new Set([
|
|
|
1465
1501
|
"upon",
|
|
1466
1502
|
"after",
|
|
1467
1503
|
"before"
|
|
1468
|
-
]),
|
|
1469
|
-
const h =
|
|
1504
|
+
]), I = (i, t) => L.has(i) || t === 0 && L.has(i.toLowerCase()), Z = (i) => i.split(/\s+/).reduce((t, a, r, n) => {
|
|
1505
|
+
const h = I(a, r), l = r > 0 && I(n[r - 1], r - 1);
|
|
1470
1506
|
if (r === 0 || h !== l) {
|
|
1471
1507
|
const s = [];
|
|
1472
|
-
for (let
|
|
1473
|
-
s.push(n[
|
|
1474
|
-
const
|
|
1508
|
+
for (let d = r; d < n.length && I(n[d], d) === h; d++)
|
|
1509
|
+
s.push(n[d]);
|
|
1510
|
+
const c = t.length > 0;
|
|
1475
1511
|
t.push(
|
|
1476
1512
|
/* @__PURE__ */ e(
|
|
1477
1513
|
"span",
|
|
1478
1514
|
{
|
|
1479
1515
|
className: h ? "minor-word" : void 0,
|
|
1480
1516
|
children: [
|
|
1481
|
-
|
|
1517
|
+
c && " ",
|
|
1482
1518
|
s.join(" ")
|
|
1483
1519
|
]
|
|
1484
1520
|
},
|
|
@@ -1488,22 +1524,22 @@ const D = /* @__PURE__ */ new Set([
|
|
|
1488
1524
|
}
|
|
1489
1525
|
return t;
|
|
1490
1526
|
}, []);
|
|
1491
|
-
function
|
|
1527
|
+
function k(i) {
|
|
1492
1528
|
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;
|
|
1493
1529
|
}
|
|
1494
|
-
const
|
|
1530
|
+
const K = (i) => {
|
|
1495
1531
|
const t = i.nightOrders.first, a = i.nightOrders.other;
|
|
1496
1532
|
return /* @__PURE__ */ e("div", { class: "night-orders-container", children: [
|
|
1497
1533
|
/* @__PURE__ */ e("div", { class: "night-order", children: [
|
|
1498
1534
|
/* @__PURE__ */ e("p", { children: "First Night:" }),
|
|
1499
|
-
/* @__PURE__ */ e("div", { class: "icon-row", children: t.map((r) => /* @__PURE__ */ e("img", { src:
|
|
1535
|
+
/* @__PURE__ */ e("div", { class: "icon-row", children: t.map((r) => /* @__PURE__ */ e("img", { src: k(r), class: "icon" })) })
|
|
1500
1536
|
] }),
|
|
1501
1537
|
/* @__PURE__ */ e("div", { class: "night-order", children: [
|
|
1502
1538
|
/* @__PURE__ */ e("p", { children: "Other Nights:" }),
|
|
1503
|
-
/* @__PURE__ */ e("div", { class: "icon-row", children: a.map((r) => /* @__PURE__ */ e("img", { src:
|
|
1539
|
+
/* @__PURE__ */ e("div", { class: "icon-row", children: a.map((r) => /* @__PURE__ */ e("img", { src: k(r), class: "icon" })) })
|
|
1504
1540
|
] })
|
|
1505
1541
|
] });
|
|
1506
|
-
},
|
|
1542
|
+
}, q = {
|
|
1507
1543
|
5: [3, 0, 1, 1],
|
|
1508
1544
|
6: [3, 1, 1, 1],
|
|
1509
1545
|
7: [5, 0, 1, 1],
|
|
@@ -1515,7 +1551,7 @@ const Z = (i) => {
|
|
|
1515
1551
|
13: [9, 0, 3, 1],
|
|
1516
1552
|
14: [9, 1, 3, 1],
|
|
1517
1553
|
"15+": [9, 2, 3, 1]
|
|
1518
|
-
},
|
|
1554
|
+
}, X = () => /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e("div", { className: "player-count-container", children: [
|
|
1519
1555
|
/* @__PURE__ */ e("div", { className: "count-column titles", children: [
|
|
1520
1556
|
/* @__PURE__ */ e("div", { className: "row-title", children: "Players" }),
|
|
1521
1557
|
/* @__PURE__ */ e("div", { className: "row-title good-count", children: "Townsfolk" }),
|
|
@@ -1523,14 +1559,14 @@ const Z = (i) => {
|
|
|
1523
1559
|
/* @__PURE__ */ e("div", { className: "row-title evil-count", children: "Minions" }),
|
|
1524
1560
|
/* @__PURE__ */ e("div", { className: "row-title evil-count", children: "Demons" })
|
|
1525
1561
|
] }),
|
|
1526
|
-
Object.entries(
|
|
1562
|
+
Object.entries(q).map(([i, t]) => /* @__PURE__ */ e("div", { className: "count-column", children: [
|
|
1527
1563
|
/* @__PURE__ */ e("div", { className: "player-count", children: i }),
|
|
1528
1564
|
/* @__PURE__ */ e("div", { className: "good-count", children: t[0] }),
|
|
1529
1565
|
/* @__PURE__ */ e("div", { className: "good-count", children: t[1] }),
|
|
1530
1566
|
/* @__PURE__ */ e("div", { className: "evil-count", children: t[2] }),
|
|
1531
1567
|
/* @__PURE__ */ e("div", { className: "evil-count", children: t[3] })
|
|
1532
1568
|
] }))
|
|
1533
|
-
] }) }),
|
|
1569
|
+
] }) }), Q = ({
|
|
1534
1570
|
title: i,
|
|
1535
1571
|
color: t,
|
|
1536
1572
|
includeMargins: a,
|
|
@@ -1540,12 +1576,12 @@ const Z = (i) => {
|
|
|
1540
1576
|
displayPlayerCounts: l = !0
|
|
1541
1577
|
}) => {
|
|
1542
1578
|
const o = () => {
|
|
1543
|
-
const
|
|
1544
|
-
return
|
|
1545
|
-
r ?
|
|
1546
|
-
y <
|
|
1579
|
+
const c = i.split("&");
|
|
1580
|
+
return c.map((d, y) => /* @__PURE__ */ e(f, { children: [
|
|
1581
|
+
r ? Z(d) : d,
|
|
1582
|
+
y < c.length - 1 && /* @__PURE__ */ e("span", { className: "ampersand", children: "&" })
|
|
1547
1583
|
] }));
|
|
1548
|
-
}, s =
|
|
1584
|
+
}, s = S(t, 180);
|
|
1549
1585
|
return /* @__PURE__ */ e(
|
|
1550
1586
|
"div",
|
|
1551
1587
|
{
|
|
@@ -1563,30 +1599,30 @@ const Z = (i) => {
|
|
|
1563
1599
|
}
|
|
1564
1600
|
),
|
|
1565
1601
|
/* @__PURE__ */ e("div", { className: "back-info-container", children: [
|
|
1566
|
-
l && /* @__PURE__ */ e(
|
|
1567
|
-
n && /* @__PURE__ */ e(
|
|
1602
|
+
l && /* @__PURE__ */ e(X, {}),
|
|
1603
|
+
n && /* @__PURE__ */ e(K, { nightOrders: h })
|
|
1568
1604
|
] })
|
|
1569
1605
|
]
|
|
1570
1606
|
}
|
|
1571
1607
|
);
|
|
1572
|
-
},
|
|
1573
|
-
/* @__PURE__ */ e(
|
|
1608
|
+
}, ee = (i) => /* @__PURE__ */ e(f, { children: [
|
|
1609
|
+
/* @__PURE__ */ e(T, { ...i, children: [
|
|
1574
1610
|
/* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
|
|
1575
1611
|
/* @__PURE__ */ e("h3", { className: "night-title", children: "First Night" }),
|
|
1576
1612
|
/* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
|
|
1577
1613
|
] }),
|
|
1578
|
-
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.firstNightOrder.map((t) => /* @__PURE__ */ e(
|
|
1614
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.firstNightOrder.map((t) => /* @__PURE__ */ e(A, { entry: t, night: "first" })) })
|
|
1579
1615
|
] }),
|
|
1580
|
-
/* @__PURE__ */ e(
|
|
1616
|
+
/* @__PURE__ */ e(T, { ...i, children: [
|
|
1581
1617
|
/* @__PURE__ */ e("div", { className: "night-sheet-heading", children: [
|
|
1582
1618
|
/* @__PURE__ */ e("h3", { className: "night-title", children: "Other Nights" }),
|
|
1583
1619
|
/* @__PURE__ */ e("h3", { className: "script-title", children: i.title })
|
|
1584
1620
|
] }),
|
|
1585
|
-
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.otherNightOrder.map((t) => /* @__PURE__ */ e(
|
|
1621
|
+
/* @__PURE__ */ e("div", { className: "night-sheet-order", children: i.otherNightOrder.map((t) => /* @__PURE__ */ e(A, { entry: t, night: "other" })) })
|
|
1586
1622
|
] })
|
|
1587
|
-
] }),
|
|
1588
|
-
const t =
|
|
1589
|
-
return /* @__PURE__ */ e(
|
|
1623
|
+
] }), T = (i) => {
|
|
1624
|
+
const t = j(i.color), a = O(t, 20), r = S(i.color, 180);
|
|
1625
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1590
1626
|
"div",
|
|
1591
1627
|
{
|
|
1592
1628
|
className: "night-sheet",
|
|
@@ -1621,30 +1657,30 @@ const Z = (i) => {
|
|
|
1621
1657
|
]
|
|
1622
1658
|
}
|
|
1623
1659
|
) });
|
|
1624
|
-
},
|
|
1625
|
-
const t =
|
|
1660
|
+
}, ie = () => /* @__PURE__ */ e("img", { className: "reminder-icon", src: "/images/reminder.png" }), A = (i) => {
|
|
1661
|
+
const t = k(i.entry), { reminderText: a, name: r } = te(i.entry, i.night), n = typeof i.entry == "string" ? "#222" : b[i.entry.team];
|
|
1626
1662
|
if (!a)
|
|
1627
|
-
return console.warn("No reminder text found for:", i.entry), /* @__PURE__ */ e(
|
|
1628
|
-
const h = (o) => o.split(":reminder:").map((s,
|
|
1663
|
+
return console.warn("No reminder text found for:", i.entry), /* @__PURE__ */ e(f, {});
|
|
1664
|
+
const h = (o) => o.split(":reminder:").map((s, c) => c % 2 === 0 ? s : /* @__PURE__ */ e(ie, {}));
|
|
1629
1665
|
return /* @__PURE__ */ e("div", { className: "night-sheet-entry", children: [
|
|
1630
1666
|
/* @__PURE__ */ e("img", { src: t }),
|
|
1631
1667
|
/* @__PURE__ */ e("div", { className: "night-sheet-entry-text", children: [
|
|
1632
1668
|
/* @__PURE__ */ e("p", { className: "reminder-name", style: { color: n }, children: r }),
|
|
1633
1669
|
/* @__PURE__ */ e("p", { className: "reminder-text", children: ((o) => {
|
|
1634
|
-
const s = o.split("*").map((
|
|
1635
|
-
return /* @__PURE__ */ e(
|
|
1670
|
+
const s = o.split("*").map((c, d) => d % 2 === 0 ? c : /* @__PURE__ */ e("strong", { children: c })).map((c) => typeof c == "string" ? h(c) : c);
|
|
1671
|
+
return /* @__PURE__ */ e(f, { children: s });
|
|
1636
1672
|
})(a) })
|
|
1637
1673
|
] })
|
|
1638
1674
|
] });
|
|
1639
|
-
},
|
|
1675
|
+
}, te = (i, t) => {
|
|
1640
1676
|
if (typeof i == "object") {
|
|
1641
1677
|
const a = t === "first" ? i.firstNightReminder : i.otherNightReminder, r = i.name;
|
|
1642
1678
|
return { reminderText: a, name: r };
|
|
1643
1679
|
} else {
|
|
1644
|
-
const a =
|
|
1680
|
+
const a = ae[i], r = t === "first" ? a.first : a.other ?? "", n = a.name;
|
|
1645
1681
|
return { reminderText: r, name: n };
|
|
1646
1682
|
}
|
|
1647
|
-
},
|
|
1683
|
+
}, ae = {
|
|
1648
1684
|
dusk: {
|
|
1649
1685
|
first: "Start the Night Phase.",
|
|
1650
1686
|
name: "Dusk",
|
|
@@ -1664,7 +1700,7 @@ const Z = (i) => {
|
|
|
1664
1700
|
name: "Minion Info"
|
|
1665
1701
|
}
|
|
1666
1702
|
};
|
|
1667
|
-
function
|
|
1703
|
+
function ne(i) {
|
|
1668
1704
|
const t = i.filter((n) => n.team === "fabled");
|
|
1669
1705
|
return [
|
|
1670
1706
|
...i.filter((n) => n.team === "loric").map((n) => ({
|
|
@@ -1679,35 +1715,36 @@ function ae(i) {
|
|
|
1679
1715
|
}))
|
|
1680
1716
|
];
|
|
1681
1717
|
}
|
|
1682
|
-
function
|
|
1718
|
+
function se({ script: i, options: t, nightOrders: a }) {
|
|
1683
1719
|
var r;
|
|
1684
1720
|
return /* @__PURE__ */ e("div", { className: "sheet-wrapper", children: [
|
|
1685
1721
|
Array(t.numberOfCharacterSheets).fill(!0).map((n, h) => {
|
|
1686
|
-
var l, o, s;
|
|
1722
|
+
var l, o, s, c;
|
|
1687
1723
|
return /* @__PURE__ */ e("div", { className: h === 0 ? "" : "print-only", children: [
|
|
1688
1724
|
/* @__PURE__ */ e(
|
|
1689
|
-
|
|
1725
|
+
V,
|
|
1690
1726
|
{
|
|
1691
1727
|
title: ((l = i.metadata) == null ? void 0 : l.name) || "Custom Script",
|
|
1692
1728
|
author: t.showAuthor ? (o = i.metadata) == null ? void 0 : o.author : void 0,
|
|
1693
|
-
characters:
|
|
1729
|
+
characters: G(i.characters),
|
|
1694
1730
|
color: t.color,
|
|
1695
|
-
jinxes: t.showJinxes ?
|
|
1696
|
-
fabledOrLoric:
|
|
1731
|
+
jinxes: t.showJinxes ? $(i.characters, t.useOldJinxes) : [],
|
|
1732
|
+
fabledOrLoric: ne(i.characters),
|
|
1697
1733
|
showSwirls: t.showSwirls,
|
|
1698
1734
|
includeMargins: t.includeMargins,
|
|
1699
1735
|
solidTitle: t.solidTitle,
|
|
1700
1736
|
iconScale: t.iconScale,
|
|
1701
1737
|
appearance: t.appearance,
|
|
1702
|
-
inlineJinxIcons: t.inlineJinxIcons
|
|
1738
|
+
inlineJinxIcons: t.inlineJinxIcons,
|
|
1739
|
+
bootleggerRules: (s = i.metadata) == null ? void 0 : s.bootlegger
|
|
1703
1740
|
}
|
|
1704
1741
|
),
|
|
1705
1742
|
/* @__PURE__ */ e("div", { style: "break-after:page;" }),
|
|
1706
|
-
t.showBackingSheet && /* @__PURE__ */ e(
|
|
1743
|
+
t.showBackingSheet && /* @__PURE__ */ e(f, { children: [
|
|
1707
1744
|
/* @__PURE__ */ e(
|
|
1708
|
-
|
|
1745
|
+
Q,
|
|
1709
1746
|
{
|
|
1710
|
-
title: ((
|
|
1747
|
+
title: ((c = i.metadata) == null ? void 0 : c.name) || "Custom Script",
|
|
1711
1748
|
color: t.color,
|
|
1712
1749
|
includeMargins: t.includeMargins,
|
|
1713
1750
|
nightOrders: a,
|
|
@@ -1720,9 +1757,9 @@ function oe({ script: i, options: t, nightOrders: a }) {
|
|
|
1720
1757
|
] })
|
|
1721
1758
|
] });
|
|
1722
1759
|
}),
|
|
1723
|
-
t.showNightSheet && /* @__PURE__ */ e(
|
|
1760
|
+
t.showNightSheet && /* @__PURE__ */ e(f, { children: [
|
|
1724
1761
|
/* @__PURE__ */ e(
|
|
1725
|
-
|
|
1762
|
+
ee,
|
|
1726
1763
|
{
|
|
1727
1764
|
firstNightOrder: a.first,
|
|
1728
1765
|
otherNightOrder: a.other,
|
|
@@ -1736,11 +1773,11 @@ function oe({ script: i, options: t, nightOrders: a }) {
|
|
|
1736
1773
|
] });
|
|
1737
1774
|
}
|
|
1738
1775
|
export {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1776
|
+
V as CharacterSheet,
|
|
1777
|
+
se as FancyDoc,
|
|
1778
|
+
ee as NightSheet,
|
|
1779
|
+
Q as SheetBack,
|
|
1743
1780
|
R as darken,
|
|
1744
|
-
|
|
1745
|
-
|
|
1781
|
+
z as parseRgb,
|
|
1782
|
+
H as rgbString
|
|
1746
1783
|
};
|
|
@@ -13,7 +13,8 @@ interface CharacterSheetProps {
|
|
|
13
13
|
appearance?: "normal" | "compact" | "super-compact" | "mega-compact";
|
|
14
14
|
fabledOrLoric?: FabledOrLoric[];
|
|
15
15
|
inlineJinxIcons?: boolean;
|
|
16
|
+
bootleggerRules?: string[];
|
|
16
17
|
}
|
|
17
|
-
export declare function CharacterSheet({ title, author, characters, color, jinxes, showSwirls, includeMargins, solidTitle, iconScale, appearance, fabledOrLoric, inlineJinxIcons, }: CharacterSheetProps): import("preact").JSX.Element;
|
|
18
|
+
export declare function CharacterSheet({ title, author, characters, color, jinxes, showSwirls, includeMargins, solidTitle, iconScale, appearance, fabledOrLoric, inlineJinxIcons, bootleggerRules, }: CharacterSheetProps): import("preact").JSX.Element;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=CharacterSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../../src/pages/CharacterSheet.tsx"],"names":[],"mappings":"AAOA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAqB,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAIvD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,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,GAAG,cAAc,CAAC;IACrE,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CharacterSheet.d.ts","sourceRoot":"","sources":["../../src/pages/CharacterSheet.tsx"],"names":[],"mappings":"AAOA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAqB,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAIvD,UAAU,mBAAmB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,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,GAAG,cAAc,CAAC;IACrE,aAAa,CAAC,EAAE,aAAa,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;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,EAClB,eAAuB,EACvB,eAAoB,GACrB,EAAE,mBAAmB,gCAgHrB"}
|