fix: support custom costume
This commit is contained in:
+6
-4
@@ -157,10 +157,12 @@ export function card(app: App) {
|
||||
),
|
||||
assets
|
||||
.hook(
|
||||
avatar.SideIconName.replace(
|
||||
"AvatarIcon_Side",
|
||||
"Gacha_AvatarImg",
|
||||
),
|
||||
char.costumeId
|
||||
? avatar.Costumes![char.costumeId].Art
|
||||
: avatar.SideIconName.replace(
|
||||
"AvatarIcon_Side",
|
||||
"Gacha_AvatarImg",
|
||||
),
|
||||
(buf) => featherImage(buf, [0, 0.3, 0, 0]),
|
||||
)
|
||||
.then(async (data) => ({
|
||||
|
||||
Reference in New Issue
Block a user