Added more sound effects

This commit is contained in:
Maruno17
2023-07-29 20:08:31 +01:00
parent 1c860a5544
commit 9a42b533f1
21 changed files with 149 additions and 103 deletions

View File

@@ -381,7 +381,7 @@ class Interpreter
end
# Used in boulder events. Allows an event to be pushed.
def pbPushThisEvent
def pbPushThisEvent(strength = false)
event = get_self
old_x = event.x
old_y = event.y
@@ -397,6 +397,7 @@ class Interpreter
end
$PokemonMap&.addMovedEvent(@event_id)
if old_x != event.x || old_y != event.y
pbSEPlay("Strength push") if strength
$game_player.lock
loop do
Graphics.update
@@ -409,7 +410,7 @@ class Interpreter
end
def pbPushThisBoulder
pbPushThisEvent if $PokemonMap.strengthUsed
pbPushThisEvent(true) if $PokemonMap.strengthUsed
return true
end