Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird dex caught attr #1140

Open
Tempo-anon opened this issue May 19, 2024 · 1 comment
Open

Weird dex caught attr #1140

Tempo-anon opened this issue May 19, 2024 · 1 comment
Labels
(Legacy) Bug Legacy Label, don't apply to new issues/PRs

Comments

@Tempo-anon
Copy link
Contributor

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 Tempo-anon added the (Legacy) Bug Legacy Label, don't apply to new issues/PRs label May 19, 2024
@Tempo-anon
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Legacy) Bug Legacy Label, don't apply to new issues/PRs
Projects
Status: Backlog
Development

No branches or pull requests

1 participant