Update spritesheet for DLC1

This commit is contained in:
Marty-D
2020-06-29 10:24:03 -04:00
parent 05853d203b
commit b877b2dfe0
2 changed files with 12 additions and 2 deletions

View File

@@ -339,6 +339,9 @@ const BattlePokemonIconIndexes: {[id: string]: number} = {
zaciancrowned: 900 + 194,
zamazentacrowned: 900 + 195,
slowpokegalar: 900 + 196,
slowbrogalar: 900 + 197,
zarudedada: 900 + 198,
pikachuworld: 900 + 199,
gumshoostotem: 735,
raticatealolatotem: 900 + 120,
@@ -431,6 +434,13 @@ const BattlePokemonIconIndexes: {[id: string]: number} = {
copperajahgmax: 1104 + 74,
duraludongmax: 1104 + 75,
eternatuseternamax: 1104 + 76,
venusaurgmax: 1104 + 77,
blastoisegmax: 1104 + 78,
rillaboomgmax: 1104 + 79,
cinderacegmax: 1104 + 80,
inteleongmax: 1104 + 81,
urshifugmax: 1104 + 82,
urshifurapidstrikegmax: 1104 + 83,
syclant: 1296 + 0,
revenankh: 1296 + 1,

View File

@@ -757,7 +757,7 @@ const Dex = new class implements ModdedDex {
num = BattlePokedex[id].num;
}
if (num < 0) num = 0;
if (num > 890) num = 0;
if (num > 893) num = 0;
if (window.BattlePokemonIconIndexes?.[id]) {
num = BattlePokemonIconIndexes[id];
@@ -803,7 +803,7 @@ const Dex = new class implements ModdedDex {
let top = Math.floor(num / 12) * 30;
let left = (num % 12) * 40;
let fainted = ((pokemon as Pokemon | ServerPokemon)?.fainted ? `;opacity:.3;filter:grayscale(100%) brightness(.5)` : ``);
return `background:transparent url(${Dex.resourcePrefix}sprites/pokemonicons-sheet.png?g8) no-repeat scroll -${left}px -${top}px${fainted}`;
return `background:transparent url(${Dex.resourcePrefix}sprites/pokemonicons-sheet.png?d1) no-repeat scroll -${left}px -${top}px${fainted}`;
}
getTeambuilderSpriteData(pokemon: any, gen: number = 0): TeambuilderSpriteData {