pagefaultgames / pokerogue

A browser based Pokémon fangame heavily inspired by the roguelite genre.
https://pokerogue.net
GNU Affero General Public License v3.0
3.86k stars 1.55k forks source link

Weird dex caught attr #1140

Open Tempo-anon opened 1 month ago

Tempo-anon commented 1 month ago

Link to game and session data here

const dexEntry = pokemon.scene.gameData.dexData[pokemon.species.speciesId];
this.ownedIcon.setVisible(!!dexEntry.caughtAttr);
const opponentPokemonDexAttr = pokemon.getDexAttr();
console.log("caught attr: " + dexEntry.caughtAttr);
console.log("oppdex attr: " + opponentPokemonDexAttr);
console.log("azu dex attr: " + pokemon.scene.gameData.dexData[184].caughtAttr);
console.log("maril dex attr: " + pokemon.scene.gameData.dexData[183].caughtAttr);
console.log("azuril dexattr: " + pokemon.scene.gameData.dexData[298].caughtAttr);
// Check if Player owns all genders and forms of the Pokemon
const missingDexAttrs = ((dexEntry.caughtAttr & opponentPokemonDexAttr) < opponentPokemonDexAttr); 
caught attr: 255 battle-info.ts:264:14
oppdex attr: 166
azu dex attr: 255 battle-info.ts:266:14
maril dex attr: 159 battle-info.ts:267:14
azuril dexattr: 159

No idea why Azumarill has a caughtAttr of 255 (everything) when Azurill and Marill have a more normal caughtAttr of 159. The user does not own the blue shiny variant so the Pokeball should have been tinted

Tempo-anon commented 4 weeks ago

I believe this happens if someone maxes out a Pokemon's caught attr before they get variants