fix: don't assume costumes would always exist
This commit is contained in:
+5
-6
@@ -242,12 +242,11 @@ export function card(app: App) {
|
|||||||
})),
|
})),
|
||||||
assets
|
assets
|
||||||
.hook(
|
.hook(
|
||||||
char.costumeId
|
(char.costumeId && avatar.Costumes?.[char.costumeId].Art) ||
|
||||||
? avatar.Costumes![char.costumeId].Art
|
avatar.SideIconName.replace(
|
||||||
: avatar.SideIconName.replace(
|
"AvatarIcon_Side",
|
||||||
"AvatarIcon_Side",
|
"Gacha_AvatarImg",
|
||||||
"Gacha_AvatarImg",
|
),
|
||||||
),
|
|
||||||
(buf) =>
|
(buf) =>
|
||||||
featherImage(buf, {
|
featherImage(buf, {
|
||||||
passes: [[0, 0.3, 0, 0]],
|
passes: [[0, 0.3, 0, 0]],
|
||||||
|
|||||||
Reference in New Issue
Block a user