mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-21 00:59:29 +01:00
grey caught indicator for genderless pokemon
This commit is contained in:
parent
dd2f475ded
commit
e04d22bc68
@ -657,7 +657,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
|
||||
getDexAttr(): bigint {
|
||||
let ret = 0n;
|
||||
ret |= this.gender !== Gender.FEMALE ? DexAttr.MALE : DexAttr.FEMALE;
|
||||
ret |= ret |=
|
||||
this.gender === Gender.GENDERLESS
|
||||
? DexAttr.GENDERLESS
|
||||
: this.gender !== Gender.FEMALE
|
||||
? DexAttr.MALE
|
||||
: DexAttr.FEMALE;
|
||||
ret |= !this.shiny ? DexAttr.NON_SHINY : DexAttr.SHINY;
|
||||
ret |= this.variant >= 2 ? DexAttr.VARIANT_3 : this.variant === 1 ? DexAttr.VARIANT_2 : DexAttr.DEFAULT_VARIANT;
|
||||
ret |= globalScene.gameData.getFormAttr(this.formIndex);
|
||||
@ -6702,7 +6707,6 @@ export class EnemyPokemon extends Pokemon {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Show or hide the type effectiveness multiplier window
|
||||
* Passing undefined will hide the window
|
||||
|
||||
@ -248,6 +248,7 @@ export interface RunEntry {
|
||||
}
|
||||
|
||||
export const DexAttr = {
|
||||
GENDERLESS: 0n,
|
||||
NON_SHINY: 1n,
|
||||
SHINY: 2n,
|
||||
MALE: 4n,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user