mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-26 02:02:20 +02:00
Buying eggs in dex does not crash the game
This commit is contained in:
parent
cb0036aa42
commit
4cbe8f3247
@ -1685,7 +1685,7 @@ export default class PokedexPageUiHandler extends MessageUiHandler {
|
|||||||
}
|
}
|
||||||
this.pokemonCandyCountText.setText(`x${starterData.candyCount}`);
|
this.pokemonCandyCountText.setText(`x${starterData.candyCount}`);
|
||||||
|
|
||||||
const egg = new Egg({ scene: globalScene, species: this.species.speciesId, sourceType: EggSourceType.SAME_SPECIES_EGG });
|
const egg = new Egg({ scene: globalScene, species: this.starterId, sourceType: EggSourceType.SAME_SPECIES_EGG });
|
||||||
egg.addEggToGameData();
|
egg.addEggToGameData();
|
||||||
|
|
||||||
globalScene.gameData.saveSystem().then(success => {
|
globalScene.gameData.saveSystem().then(success => {
|
||||||
|
Loading…
Reference in New Issue
Block a user