Added methods Pokemon.play_cry and pkkmn.play_cry

This commit is contained in:
Maruno17
2021-05-09 17:53:05 +01:00
parent 852c924ed6
commit e03e258f6a
11 changed files with 30 additions and 23 deletions

View File

@@ -302,14 +302,14 @@ end
# @deprecated This alias is slated to be removed in v20.
def pbPlayCrySpecies(species, form = 0, volume = 90, pitch = nil)
Deprecation.warn_method('pbPlayCrySpecies', 'v20', 'GameData::Species.play_cry_from_species(species, form)')
GameData::Species.play_cry_from_species(species, form, volume, pitch)
Deprecation.warn_method('pbPlayCrySpecies', 'v20', 'Pokemon.play_cry(species, form)')
Pokemon.play_cry(species, form, volume, pitch)
end
# @deprecated This alias is slated to be removed in v20.
def pbPlayCryPokemon(pkmn, volume = 90, pitch = nil)
Deprecation.warn_method('pbPlayCryPokemon', 'v20', 'GameData::Species.play_cry_from_pokemon(pkmn)')
GameData::Species.play_cry_from_pokemon(pkmn, volume, pitch)
Deprecation.warn_method('pbPlayCryPokemon', 'v20', 'pkmn.play_cry')
pkmn.play_cry(volume, pitch)
end
# @deprecated This alias is slated to be removed in v20.