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

@@ -559,8 +559,7 @@ class PokemonBattlerSprite < RPG::Sprite
# recommendation is to create a PictureEx animation and push it into
# the @battleAnimations array.
def pbPlayIntroAnimation(pictureEx=nil)
return if !@pkmn
GameData::Species.play_cry_from_pokemon(@pkmn)
@pkmn.play_cry if @pkmn
end
QUARTER_ANIM_PERIOD = Graphics.frame_rate*3/20