Skip to content

Commit

Permalink
Update battle-dex.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KirbyRider1337 authored Feb 5, 2024
1 parent 9532ce9 commit 116dda4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions play.pokemonshowdown.com/src/battle-dex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ const Dex = new class implements ModdedDex {
if (optionsMod && window.ModSprites[spriteId][optionsMod]) {
for (const prefix of ['ani', '']) {
if (window.ModSprites[spriteId][optionsMod].hasOwnProperty(prefix + filepath))
//It won't matter if
//It won't matter if it inherits in another mod or not, point is it has data in this mod
return {mod: optionsMod, inherit: window.ModSprites[spriteId][optionsMod][prefix + filepath]};
}
}
Expand Down Expand Up @@ -941,7 +941,7 @@ const Dex = new class implements ModdedDex {
}
}

//TODO: Support modded ones maybe?
//TODO: Support replaced sprites from mods maybe?
getCategoryIcon(category: string | null) {
const categoryID = toID(category);
let sanitizedCategory = '';
Expand Down

0 comments on commit 116dda4

Please sign in to comment.