mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 14:55:22 +01:00
Merge branch 'beta' into hotfix-1.10.3
This commit is contained in:
commit
dc31ae257a
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pokemon-rogue-battle",
|
"name": "pokemon-rogue-battle",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.10.3",
|
"version": "1.11.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
|
|||||||
@ -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;
|
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}.
|
* Return this Pokemon's {@linkcode Gender}.
|
||||||
* @param ignoreOverride - Whether to ignore any overrides caused by {@linkcode MoveId.TRANSFORM | Transform}; default `false`
|
* @param ignoreOverride - Whether to ignore any overrides caused by {@linkcode MoveId.TRANSFORM | Transform}; default `false`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user