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
|
||||
.hook(
|
||||
char.costumeId
|
||||
? avatar.Costumes![char.costumeId].Art
|
||||
: avatar.SideIconName.replace(
|
||||
"AvatarIcon_Side",
|
||||
"Gacha_AvatarImg",
|
||||
),
|
||||
(char.costumeId && avatar.Costumes?.[char.costumeId].Art) ||
|
||||
avatar.SideIconName.replace(
|
||||
"AvatarIcon_Side",
|
||||
"Gacha_AvatarImg",
|
||||
),
|
||||
(buf) =>
|
||||
featherImage(buf, {
|
||||
passes: [[0, 0.3, 0, 0]],
|
||||
|
||||
Reference in New Issue
Block a user