mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Pokémon cry when fainting now has a lower pitch
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user