mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
randomizer - gift pokemon
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user