botc-character-sheet 0.12.0 → 0.12.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
CHANGED
|
@@ -475,11 +475,11 @@ const k = /* @__PURE__ */ new Set([
|
|
|
475
475
|
]
|
|
476
476
|
}
|
|
477
477
|
) });
|
|
478
|
-
},
|
|
479
|
-
const t = w(i.entry), { reminderText: n, name: r } =
|
|
478
|
+
}, _ = () => /* @__PURE__ */ e("img", { className: "reminder-icon", src: "/images/reminder.png" }), M = (i) => {
|
|
479
|
+
const t = w(i.entry), { reminderText: n, name: r } = G(i.entry, i.night), a = typeof i.entry == "string" ? "#222" : f[i.entry.team];
|
|
480
480
|
if (!n)
|
|
481
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(
|
|
482
|
+
const c = (l) => l.split(":reminder:").map((o, s) => s % 2 === 0 ? o : /* @__PURE__ */ e(_, {}));
|
|
483
483
|
return /* @__PURE__ */ e("div", { className: "night-sheet-entry", children: [
|
|
484
484
|
/* @__PURE__ */ e("img", { src: t }),
|
|
485
485
|
/* @__PURE__ */ e("div", { className: "night-sheet-entry-text", children: [
|
|
@@ -490,7 +490,7 @@ const k = /* @__PURE__ */ new Set([
|
|
|
490
490
|
})(n) })
|
|
491
491
|
] })
|
|
492
492
|
] });
|
|
493
|
-
},
|
|
493
|
+
}, G = (i, t) => {
|
|
494
494
|
if (typeof i == "object") {
|
|
495
495
|
const n = t === "first" ? i.firstNightReminder : i.otherNightReminder, r = i.name;
|
|
496
496
|
return { reminderText: n, name: r };
|
|
@@ -529,7 +529,7 @@ function V(i) {
|
|
|
529
529
|
...n.map((a) => ({
|
|
530
530
|
name: a.name,
|
|
531
531
|
note: a.ability,
|
|
532
|
-
image: Array.isArray(a.image) ? a.image[0] : a.image
|
|
532
|
+
image: a.wiki_image ?? (Array.isArray(a.image) ? a.image[0] : a.image)
|
|
533
533
|
}))
|
|
534
534
|
];
|
|
535
535
|
}
|
|
@@ -1 +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,
|
|
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,CAoBjB"}
|