botc-character-sheet 0.15.0-beta.2 → 0.15.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/index.js +15 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { options as j, Fragment as m } from "preact";
|
|
2
|
-
var
|
|
2
|
+
var W = 0;
|
|
3
3
|
function e(i, t, a, r, n, h) {
|
|
4
4
|
t || (t = {});
|
|
5
5
|
var l, s, o = t;
|
|
6
6
|
if ("ref" in o) for (s in o = {}, t) s == "ref" ? l = t[s] : o[s] = t[s];
|
|
7
|
-
var c = { type: i, props: o, key: a, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
7
|
+
var c = { type: i, props: o, key: a, ref: l, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --W, __i: -1, __u: 0, __source: n, __self: h };
|
|
8
8
|
if (typeof i == "function" && (l = i.defaultProps)) for (s in l) o[s] === void 0 && (o[s] = l[s]);
|
|
9
9
|
return j.vnode && j.vnode(c), c;
|
|
10
10
|
}
|
|
@@ -69,7 +69,7 @@ function R({
|
|
|
69
69
|
t.map((o) => [o.id.toLowerCase(), o])
|
|
70
70
|
), n = i.length > 4, h = n ? Math.ceil(i.length / 2) : i.length;
|
|
71
71
|
let l, s;
|
|
72
|
-
return a.length ? (l = i.map((o, c) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${c}`)), s = a.map((o, c) => /* @__PURE__ */ e(
|
|
72
|
+
return a.length ? (l = i.map((o, c) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${c}`)), s = a.map((o, c) => /* @__PURE__ */ e(H, { item: o }, `rc-${c}`))) : n ? (l = i.slice(0, h).map((o, c) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${c}`)), s = i.slice(h).map((o, c) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `rc-${c}`))) : l = i.map((o, c) => /* @__PURE__ */ e(p, { jinx: o, charMap: r }, `lc-${c}`)), /* @__PURE__ */ e("div", { className: "jinxes-section", children: [
|
|
73
73
|
/* @__PURE__ */ e("h2", { className: "section-title" }),
|
|
74
74
|
s ? /* @__PURE__ */ e("div", { className: "jinxes-list jinxes-two-columns", children: [
|
|
75
75
|
/* @__PURE__ */ e("div", { className: "jinx-column", children: [
|
|
@@ -108,7 +108,7 @@ const p = ({ charMap: i, jinx: t }) => {
|
|
|
108
108
|
/* @__PURE__ */ e("p", { className: "jinx-text", children: t.jinx })
|
|
109
109
|
] });
|
|
110
110
|
};
|
|
111
|
-
function
|
|
111
|
+
function H({ item: i }) {
|
|
112
112
|
return /* @__PURE__ */ e("div", { className: "jinx-item loric", children: [
|
|
113
113
|
/* @__PURE__ */ e("div", { className: "loric-spacer" }),
|
|
114
114
|
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) }),
|
|
@@ -121,7 +121,7 @@ function _({ item: i }) {
|
|
|
121
121
|
function b(i) {
|
|
122
122
|
return i.wiki_image ? i.wiki_image : i.image ? typeof i.image == "string" ? i.image : i.image[0] : null;
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const _ = [
|
|
125
125
|
{
|
|
126
126
|
characters: [
|
|
127
127
|
"alchemist",
|
|
@@ -190,6 +190,13 @@ const H = [
|
|
|
190
190
|
jinx: "If the Princess nominated & executed a player on their 1st day, no one dies to the Al-Hadikhia tonight.",
|
|
191
191
|
oldJinx: "If the Princess nominated & executed a player on their 1st day, no one dies to the Al-Hadikhia ability tonight."
|
|
192
192
|
},
|
|
193
|
+
{
|
|
194
|
+
characters: [
|
|
195
|
+
"alhadikhia",
|
|
196
|
+
"mastermind"
|
|
197
|
+
],
|
|
198
|
+
jinx: "If the Al-Hadikhia dies by execution, and the Mastermind is alive, the Al-Hadikhia chooses 3 good players tonight: if all 3 choose to live, evil wins. Otherwise, good wins."
|
|
199
|
+
},
|
|
193
200
|
{
|
|
194
201
|
characters: [
|
|
195
202
|
"boffin",
|
|
@@ -1113,7 +1120,7 @@ function G(i) {
|
|
|
1113
1120
|
}
|
|
1114
1121
|
function B(i, t = !1) {
|
|
1115
1122
|
const a = new Set(i.map((n) => n.id.toLowerCase())), r = [];
|
|
1116
|
-
for (const n of
|
|
1123
|
+
for (const n of _) {
|
|
1117
1124
|
const [h, l] = n.characters;
|
|
1118
1125
|
a.has(h) && a.has(l) && (t && n.oldJinx ? r.push({
|
|
1119
1126
|
characters: n.characters,
|
|
@@ -1222,7 +1229,7 @@ function $({
|
|
|
1222
1229
|
}
|
|
1223
1230
|
),
|
|
1224
1231
|
/* @__PURE__ */ e("div", { className: "characters-grid", children: [
|
|
1225
|
-
g.map((u,
|
|
1232
|
+
g.map((u, O) => /* @__PURE__ */ e(m, { children: [
|
|
1226
1233
|
/* @__PURE__ */ e(
|
|
1227
1234
|
U,
|
|
1228
1235
|
{
|
|
@@ -1241,7 +1248,7 @@ function $({
|
|
|
1241
1248
|
},
|
|
1242
1249
|
u.key
|
|
1243
1250
|
),
|
|
1244
|
-
|
|
1251
|
+
O < g.length - 1 && /* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" })
|
|
1245
1252
|
] })),
|
|
1246
1253
|
(n.length > 0 || d.length > 0) && /* @__PURE__ */ e(m, { children: [
|
|
1247
1254
|
/* @__PURE__ */ e("img", { src: "/images/divider.png", className: "section-divider" }),
|