Added <battle.caught> command

This commit is contained in:
Vitaly Mikhailov 2019-10-31 23:48:31 +03:00
parent 3db096afed
commit ef0cecfe2e
No known key found for this signature in database
GPG Key ID: 46EFF05D37A3FA18
4 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
Public Shared Won As Boolean = False
Public Shared Fled As Boolean = False
Public Shared Caught As Boolean = False
Public IsAfterFaint As Boolean = False

View File

@ -122,6 +122,8 @@
Me.IsTrainerBattle = False
Me.MouseVisible = False
Me.PVPGameJoltID = ""
'Reset variable when new battle starts
BattleSystem.Battle.Caught = False
End Sub
Public Sub New(ByVal Trainer As Trainer, ByVal OverworldScreen As Screen, ByVal defaultMapType As Integer)

View File

@ -161,6 +161,7 @@
AnimationStarted = False
SetupAnimation()
CatchPokemon()
BattleSystem.Battle.Caught = True
Case 8
AnimationIndex = 9
If showPokedexEntry = True Then

View File

@ -25,6 +25,8 @@
Return t.OutroMessage
Case "won"
Return ReturnBoolean(BattleSystem.Battle.Won)
Case "caught"
Return ReturnBoolean(BattleSystem.Battle.Caught)
End Select
Return DEFAULTNULL