[Misc] Remove unused generateGender method from Pokemon (#6353)

This commit is contained in:
NightKev 2025-08-23 06:59:59 -07:00 committed by GitHub
parent 41ff25b50e
commit 4ac1a5739c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1652,19 +1652,6 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
return precise ? this.hp / this.getMaxHp() : Math.round((this.hp / this.getMaxHp()) * 100) / 100;
}
generateGender(): void {
if (this.species.malePercent === null) {
this.gender = Gender.GENDERLESS;
} else {
const genderChance = (this.id % 256) * 0.390625;
if (genderChance < this.species.malePercent) {
this.gender = Gender.MALE;
} else {
this.gender = Gender.FEMALE;
}
}
}
/**
* Return this Pokemon's {@linkcode Gender}.
* @param ignoreOverride - Whether to ignore any overrides caused by {@linkcode MoveId.TRANSFORM | Transform}; default `false`