You can now have regional wild defeat music

This commit is contained in:
JappaWakka 2025-05-30 10:48:17 +02:00
parent ff1d21f115
commit 808001ceec
3 changed files with 16 additions and 3 deletions

View File

@ -8390,7 +8390,12 @@
Won = True
Core.Player.AddPoints(1, "Won against wild Pokémon.")
BattleScreen.BattleQuery.Add(New PlayMusicQueryObject("wild_defeat"))
Dim musicLoop As String = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_defeat"
If MusicManager.SongExists(musicLoop) = False Then
musicLoop = "wild_defeat"
End If
BattleScreen.BattleQuery.Add(New PlayMusicQueryObject(musicLoop))
ChangeCameraAngle(1, True, BattleScreen)
GainEXP(BattleScreen)

View File

@ -335,7 +335,11 @@ nextIndex:
p.SetCatchInfos(Me.Ball, Localization.GetString("CatchMethod_Caught", "Caught at"))
MusicManager.Pause()
MusicManager.Play("wild_defeat", False, 0.0F)
Dim musicLoop As String = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_defeat"
If MusicManager.SongExists(musicLoop) = False Then
musicLoop = "wild_defeat"
End If
MusicManager.Play(musicLoop, False, 0.0F)
SoundManager.PlaySound("success_catch", True)
TextBox.Show(s, {}, False, False)

View File

@ -97,7 +97,11 @@
If size < 4.0F Then
size += 0.08F
Else
MusicManager.Play("wild_defeat")
Dim musicLoop As String = Screen.Level.CurrentRegion.Split(CChar(","))(0) & "_wild_defeat"
If MusicManager.SongExists(musicLoop) = False Then
musicLoop = "wild_defeat"
End If
MusicManager.Play(musicLoop)
cPokemon.PlayCry()
SoundManager.PlaySound("success", True)
Stage = 7