Skip to content

Commit

Permalink
fix: icons resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
giniedp committed Jul 19, 2023
1 parent 47e24cb commit 9c52202
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tools/importer/tables/table-rewrite-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function rewriteImagePathRule(inputDir: string): RewriteFile {
}
let candidates = [
obj.IconPath,
obj.ArmorIconM ? findIcon(obj.ArmorIconM) : null,
obj.ArmorIconF ? findIcon(obj.ArmorIconF) : null,
obj.ArmorAppearanceM ? findIcon(obj.ArmorAppearanceM) : null,
obj.ArmorAppearanceF ? findIcon(obj.ArmorAppearanceF) : null,
obj.WeaponAppearanceOverride ? findIcon(obj.WeaponAppearanceOverride) : null,
]
if (obj.ItemType && obj.ArmorAppearanceM) {
Expand All @@ -38,13 +38,7 @@ export function rewriteImagePathRule(inputDir: string): RewriteFile {
}
}
obj.IconPath = null
if (obj.ItemID.includes('Deluxe')) {
console.log(
'icon missing',
obj.ItemID,
candidates.filter((it) => !!it)
)
}

},
],
}
Expand Down

0 comments on commit 9c52202

Please sign in to comment.