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