mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 08:14:29 +02:00
If BattleAnimations = 0, skip catch animations
This commit is contained in:
parent
9e67b5fc62
commit
c22f7d3894
@ -140,6 +140,27 @@ nextIndex:
|
||||
Select Case AnimationIndex
|
||||
Case 0
|
||||
If AnimationHasStarted = False Then
|
||||
Dim Shakes As List(Of Boolean) = New List(Of Boolean)
|
||||
For i = 0 To 3
|
||||
If StayInBall() = True Then
|
||||
Select Case i
|
||||
Case 0
|
||||
Shakes.Add(False)
|
||||
Case 1
|
||||
Shakes.Add(True)
|
||||
Case 2
|
||||
Shakes.Add(False)
|
||||
Case 3
|
||||
InBall = True
|
||||
End Select
|
||||
Else
|
||||
Exit For
|
||||
InBall = False
|
||||
End If
|
||||
Next
|
||||
If Core.Player.ShowBattleAnimations <> 0 Then
|
||||
|
||||
|
||||
PokemonScale = BattleScreen.OppPokemonNPC.Scale
|
||||
'Ball is thrown
|
||||
Dim CatchAnimation = New BattleSystem.AnimationQueryObject(Nothing, False, Nothing)
|
||||
@ -179,24 +200,7 @@ nextIndex:
|
||||
CatchAnimation.AnimationMove(BallEntity, False, 3, -0.35, 0, 0.1F, False, False, 8, 0)
|
||||
CatchAnimation.AnimationPlaySound("Battle\Pokeball\Land", 9, 0)
|
||||
|
||||
Dim Shakes As List(Of Boolean) = New List(Of Boolean)
|
||||
For i = 0 To 3
|
||||
If StayInBall() = True Then
|
||||
Select Case i
|
||||
Case 0
|
||||
Shakes.Add(False)
|
||||
Case 1
|
||||
Shakes.Add(True)
|
||||
Case 2
|
||||
Shakes.Add(False)
|
||||
Case 3
|
||||
InBall = True
|
||||
End Select
|
||||
Else
|
||||
Exit For
|
||||
InBall = False
|
||||
End If
|
||||
Next
|
||||
|
||||
For i = 0 To Shakes.Count - 1
|
||||
CatchAnimation.AnimationPlaySound("Battle\Pokeball\Shake", 12 + i * 10, 0)
|
||||
If Shakes(i) = False Then
|
||||
@ -244,6 +248,7 @@ nextIndex:
|
||||
End If
|
||||
|
||||
AnimationList.Add(CatchAnimation)
|
||||
End If
|
||||
AnimationHasStarted = True
|
||||
Else
|
||||
If AnimationList.Count = 0 Then
|
||||
|
Loading…
x
Reference in New Issue
Block a user