Fix to getStarterSpeciesId to work with all-unlocks files
This commit is contained in:
parent
3597d34e44
commit
41841ace1b
|
@ -787,7 +787,7 @@ export default class PokedexUiHandler extends MessageUiHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
getStarterSpeciesId(speciesId): number {
|
getStarterSpeciesId(speciesId): number {
|
||||||
if (this.scene.gameData.starterData.hasOwnProperty(speciesId)) {
|
if (speciesStarterCosts.hasOwnProperty(speciesId)) {
|
||||||
return speciesId;
|
return speciesId;
|
||||||
} else {
|
} else {
|
||||||
return pokemonStarters[speciesId];
|
return pokemonStarters[speciesId];
|
||||||
|
|
Loading…
Reference in New Issue