diff --git a/Data/Scripts/009_Objects and windows/009_PictureEx.rb b/Data/Scripts/009_Objects and windows/009_PictureEx.rb index b6f882dba..99dad9e56 100644 --- a/Data/Scripts/009_Objects and windows/009_PictureEx.rb +++ b/Data/Scripts/009_Objects and windows/009_PictureEx.rb @@ -301,9 +301,9 @@ class PictureEx @processes.push([Processes::BlendType,delay,0,0,cb,blend]) end - def setSE(delay, seFile, volume=nil, cb=nil) + def setSE(delay, seFile, volume=nil, pitch=nil, cb=nil) delay = ensureDelay(delay) - @processes.push([Processes::SE,delay,0,0,cb,seFile,volume]) + @processes.push([Processes::SE,delay,0,0,cb,seFile,volume,pitch]) end def setName(delay, name, cb=nil) @@ -411,7 +411,7 @@ class PictureEx when Processes::BlendType @blend_type = process[5] when Processes::SE - pbSEPlay(process[5],process[6]) + pbSEPlay(process[5],process[6],process[7]) when Processes::Name @name = process[5] when Processes::Origin diff --git a/Data/Scripts/012_Battle/005_Battle scene/002_PokeBattle_SceneAnimations.rb b/Data/Scripts/012_Battle/005_Battle scene/002_PokeBattle_SceneAnimations.rb index 9f6ee0094..9e5ca0e24 100644 --- a/Data/Scripts/012_Battle/005_Battle scene/002_PokeBattle_SceneAnimations.rb +++ b/Data/Scripts/012_Battle/005_Battle scene/002_PokeBattle_SceneAnimations.rb @@ -670,7 +670,7 @@ class BattlerFaintAnimation < PokeBattle_Animation delay = 10 cry = pbCryFile(batSprite.pkmn) if cry - battler.setSE(0,pbCryFile(batSprite.pkmn)) + battler.setSE(0,pbCryFile(batSprite.pkmn),nil,75) # 75 is pitch delay = pbCryFrameLength(batSprite.pkmn)*20/Graphics.frame_rate end # Sprite drops down