Added <battle.caught> command
This commit is contained in:
parent
3db096afed
commit
ef0cecfe2e
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
Public Shared Won As Boolean = False
|
Public Shared Won As Boolean = False
|
||||||
Public Shared Fled As Boolean = False
|
Public Shared Fled As Boolean = False
|
||||||
|
Public Shared Caught As Boolean = False
|
||||||
|
|
||||||
|
|
||||||
Public IsAfterFaint As Boolean = False
|
Public IsAfterFaint As Boolean = False
|
||||||
|
|
|
@ -122,6 +122,8 @@
|
||||||
Me.IsTrainerBattle = False
|
Me.IsTrainerBattle = False
|
||||||
Me.MouseVisible = False
|
Me.MouseVisible = False
|
||||||
Me.PVPGameJoltID = ""
|
Me.PVPGameJoltID = ""
|
||||||
|
'Reset variable when new battle starts
|
||||||
|
BattleSystem.Battle.Caught = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Sub New(ByVal Trainer As Trainer, ByVal OverworldScreen As Screen, ByVal defaultMapType As Integer)
|
Public Sub New(ByVal Trainer As Trainer, ByVal OverworldScreen As Screen, ByVal defaultMapType As Integer)
|
||||||
|
|
|
@ -161,6 +161,7 @@
|
||||||
AnimationStarted = False
|
AnimationStarted = False
|
||||||
SetupAnimation()
|
SetupAnimation()
|
||||||
CatchPokemon()
|
CatchPokemon()
|
||||||
|
BattleSystem.Battle.Caught = True
|
||||||
Case 8
|
Case 8
|
||||||
AnimationIndex = 9
|
AnimationIndex = 9
|
||||||
If showPokedexEntry = True Then
|
If showPokedexEntry = True Then
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
Return t.OutroMessage
|
Return t.OutroMessage
|
||||||
Case "won"
|
Case "won"
|
||||||
Return ReturnBoolean(BattleSystem.Battle.Won)
|
Return ReturnBoolean(BattleSystem.Battle.Won)
|
||||||
|
Case "caught"
|
||||||
|
Return ReturnBoolean(BattleSystem.Battle.Caught)
|
||||||
End Select
|
End Select
|
||||||
|
|
||||||
Return DEFAULTNULL
|
Return DEFAULTNULL
|
||||||
|
|
Loading…
Reference in New Issue