randomizer - gift pokemon

This commit is contained in:
infinitefusion
2022-05-01 15:35:03 -04:00
parent 089975984e
commit 68d0e24ef4
5 changed files with 12 additions and 2 deletions

View File

@@ -188,3 +188,10 @@ def getRandomizedTo(species)
return $PokemonGlobal.psuedoBSTHash[dexNum(species)]
# code here
end
def tryRandomizeGiftPokemon(pokemon,dontRandomize=false)
if $game_switches[SWITCH_RANDOM_GIFT_POKEMON] && $game_switches[SWITCH_RANDOM_WILD] && !dontRandomize
oldSpecies = dexNum(pokemon.species)
pokemon.species = getSpecies($PokemonGlobal.psuedoBSTHash[oldSpecies])
end
end