fix: support custom costume
This commit is contained in:
@@ -22,6 +22,7 @@ export class AssetManager {
|
||||
...Object.values(avatars).flatMap((a) => [
|
||||
...a.Consts,
|
||||
...Object.values(a.Skills),
|
||||
...Object.values(a.Costumes ?? {}).map((c) => c.Art),
|
||||
a.SideIconName.replace("AvatarIcon_Side", "Gacha_AvatarImg"),
|
||||
]),
|
||||
...Object.values(weapons).flatMap((w) => [w.Icon, w.AwakenIcon]),
|
||||
|
||||
+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