Play sound when poison pokémon lose hp when walk

This commit is contained in:
JappaWakka 2023-05-02 13:31:20 +02:00
parent b23c0455e6
commit 77cfefd598
3 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -18032,6 +18032,9 @@
<Content Include="Content\Sounds\Emote_Exclamation.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Content\Sounds\OverworldPoison.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Content\Textures\Battle\Flying\Gust.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

View File

@ -1883,6 +1883,7 @@
PoisonSteps -= 4
End If
If PoisonAmount > 0 Then
SoundManager.PlaySound("OverworldPoison")
For i = 0 To Core.Player.Pokemons.Count - 1
If Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.Poison OrElse Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.BadPoison Then
If Core.Player.Pokemons(i).Ability IsNot Ability.GetAbilityByID(17) Then