mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Added more sound effects
This commit is contained in:
@@ -214,7 +214,7 @@ class Battle
|
||||
pkmn.calc_stats
|
||||
battler&.pbUpdate(false)
|
||||
@scene.pbRefreshOne(battler.index) if battler
|
||||
pbDisplayPaused(_INTL("{1} grew to Lv. {2}!", pkmn.name, curLevel))
|
||||
pbDisplayPaused(_INTL("{1} grew to Lv. {2}!", pkmn.name, curLevel)) { pbSEPlay("Pkmn level up") }
|
||||
@scene.pbLevelUp(pkmn, battler, oldTotalHP, oldAttack, oldDefense,
|
||||
oldSpAtk, oldSpDef, oldSpeed)
|
||||
# Learn all moves learned at this level
|
||||
|
||||
@@ -227,6 +227,7 @@ class Battle::Scene::Animation::AbilitySplashAppear < Battle::Scene::Animation
|
||||
return if !@sprites["abilityBar_#{@side}"]
|
||||
bar = addSprite(@sprites["abilityBar_#{@side}"])
|
||||
bar.setVisible(0, true)
|
||||
bar.setSE(0, "Battle ability")
|
||||
dir = (@side == 0) ? 1 : -1
|
||||
bar.moveDelta(0, 8, dir * Graphics.width / 2, 0)
|
||||
end
|
||||
@@ -700,7 +701,11 @@ class Battle::Scene::Animation::PokeballThrowCapture < Battle::Scene::Animation
|
||||
end
|
||||
delay = ball.totalDuration # 0 or 7
|
||||
# Poké Ball arc animation
|
||||
ball.setSE(delay, "Battle throw")
|
||||
if @critCapture
|
||||
ball.setSE(delay, "Battle critical catch throw")
|
||||
else
|
||||
ball.setSE(delay, "Battle throw")
|
||||
end
|
||||
createBallTrajectory(ball, delay, 16,
|
||||
ballStartX, ballStartY, ballMidX, ballMidY, ballEndX, ballEndY)
|
||||
ball.setZ(9, batSprite.z + 1)
|
||||
|
||||
@@ -472,6 +472,7 @@ class SafariBattle
|
||||
# End of round
|
||||
if @decision == 0
|
||||
if @ballCount <= 0
|
||||
pbSEPlay("Safari Zone end")
|
||||
pbDisplay(_INTL("PA: You have no Safari Balls left! Game over!"))
|
||||
@decision = 2
|
||||
elsif pbRandom(100) < 5 * escapeFactor
|
||||
|
||||
Reference in New Issue
Block a user