mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-06 23:49:26 +02:00
Revert "[Bug] Genderless Pokemon no longer grey out the caught icon" (#6094)
Revert "[Bug] grey caught indicator for genderless pokemon (#5935)"
This reverts commit 5104f5712f
.
This commit is contained in:
parent
5104f5712f
commit
374fb9613a
@ -1,5 +1,4 @@
|
||||
export const DexAttr = Object.freeze({
|
||||
GENDERLESS: 0n,
|
||||
NON_SHINY: 1n,
|
||||
SHINY: 2n,
|
||||
MALE: 4n,
|
||||
|
@ -558,13 +558,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
|
||||
getDexAttr(): bigint {
|
||||
let ret = 0n;
|
||||
ret |=
|
||||
this.gender === Gender.GENDERLESS
|
||||
? DexAttr.GENDERLESS
|
||||
: this.gender === Gender.FEMALE
|
||||
? DexAttr.FEMALE
|
||||
: DexAttr.MALE;
|
||||
|
||||
ret |= 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);
|
||||
|
Loading…
Reference in New Issue
Block a user