mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Pokémon cries no longer change pitch except when fainting, added support for separate fainting cries
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user