mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-21 21:56:01 +00:00
Added methods Pokemon.play_cry and pkkmn.play_cry
This commit is contained in:
@@ -92,6 +92,14 @@ class Pokemon
|
||||
# Maximum number of moves a Pokémon can know at once
|
||||
MAX_MOVES = 4
|
||||
|
||||
def self.play_cry(species, form = 0, volume = 90, pitch = 100)
|
||||
GameData::Species.play_cry_from_species(species, form, volume, pitch)
|
||||
end
|
||||
|
||||
def play_cry(volume = 90, pitch = nil)
|
||||
GameData::Species.play_cry_from_pokemon(self, volume, pitch)
|
||||
end
|
||||
|
||||
def inspect
|
||||
str = super.chop
|
||||
str << format(' %s Lv.%s>', @species, @level.to_s || '???')
|
||||
|
||||
Reference in New Issue
Block a user