mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-20 03:06:49 +00:00
[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:
parent
d66d4d1eeb
commit
c722490f60
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user