Pokémon cries no longer change pitch except when fainting, added support for separate fainting cries

This commit is contained in:
Maruno17
2021-12-14 23:19:08 +00:00
parent b706843888
commit 15b86429a2
4 changed files with 35 additions and 23 deletions

View File

@@ -96,9 +96,9 @@ class PokemonEggHatch_Scene
@sprites["pokemon"].tone=Tone.new(0,0,0)
@sprites["overlay"].opacity=0
# Finish scene
frames = GameData::Species.cry_length(@pokemon)
frames = (GameData::Species.cry_length(@pokemon) * Graphics.frame_rate).ceil
@pokemon.play_cry
updateScene(frames)
updateScene(frames + 4)
pbBGMStop()
pbMEPlay("Evolution success")
@pokemon.name = nil

View File

@@ -569,10 +569,10 @@ class PokemonEvolutionScene
def pbEvolutionSuccess
$stats.evolution_count += 1
# Play cry of evolved species
frames = GameData::Species.cry_length(@newspecies, @pokemon.form)
frames = (GameData::Species.cry_length(@newspecies, @pokemon.form) * Graphics.frame_rate).ceil
pbBGMStop
Pokemon.play_cry(@newspecies, @pokemon.form)
frames.times do
(frames + 4).times do
Graphics.update
pbUpdate
end