[Feature] Allow Phione eggs to have a 1/8 chance to hatch Manaphy (#2787)

* Add feature and debug DO NOT MERGE

* Remove debug stuff
This commit is contained in:
Tempoanon 2024-08-06 14:05:19 -04:00 committed by GitHub
parent d66d4d1eeb
commit c722490f60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -205,7 +205,11 @@ export class Egg {
this._species = this.rollSpecies(scene);
}
const pokemonSpecies = getPokemonSpecies(this._species);
let pokemonSpecies = getPokemonSpecies(this._species);
// Special condition to have Phione eggs also have a chance of generating Manaphy
if (this._species === Species.PHIONE) {
pokemonSpecies = getPokemonSpecies(Utils.randSeedInt(MANAPHY_EGG_MANAPHY_RATE) ? Species.PHIONE : Species.MANAPHY);
}
// Sets the hidden ability if a hidden ability exists and the override is set
// or if the same species egg hits the chance