mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-30 21:42:20 +02:00
Update pokemon-species.ts
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
4bac0ed3ec
commit
28aa875e78
@ -83,7 +83,7 @@ export const normalForm: Species[] = [
|
||||
*/
|
||||
export function getPokemonSpecies(species: Species | Species[]): PokemonSpecies {
|
||||
if (Array.isArray(species)) {
|
||||
// TODO: can't we just use normal int number gen rather than this junk
|
||||
// TODO: this should not be handled by this function
|
||||
species = species[Math.floor(Math.random() * species.length)];
|
||||
}
|
||||
if (species >= 2000) {
|
||||
|
Loading…
Reference in New Issue
Block a user