Fixed X-Items functionality
This commit is contained in:
parent
b859e5e79f
commit
ca9e088ec3
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Inherits Item
|
Inherits Item
|
||||||
|
|
||||||
Public Overrides ReadOnly Property CanBeUsed As Boolean = False
|
Public Overrides ReadOnly Property CanBeUsed As Boolean = False
|
||||||
Public Overrides ReadOnly Property BattleSelectPokemon As Boolean = True
|
Public Overrides ReadOnly Property BattleSelectPokemon As Boolean = False
|
||||||
Public Overrides ReadOnly Property ItemType As ItemTypes = ItemTypes.BattleItems
|
Public Overrides ReadOnly Property ItemType As ItemTypes = ItemTypes.BattleItems
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
||||||
Dim foundBattleScreen As Boolean = True
|
Dim foundBattleScreen As Boolean = True
|
||||||
Dim s As Screen = Core.CurrentScreen
|
Dim s As Screen = Core.CurrentScreen
|
||||||
While s.Identification <> Screen.Identifications.BattleScreen
|
While s.Identification <> Screen.Identifications.BattleScreen
|
||||||
s = s.PreScreen
|
|
||||||
If s.PreScreen Is Nothing Then
|
If s.PreScreen Is Nothing Then
|
||||||
foundBattleScreen = False
|
foundBattleScreen = False
|
||||||
Exit While
|
Exit While
|
||||||
End If
|
End If
|
||||||
|
s = s.PreScreen
|
||||||
End While
|
End While
|
||||||
|
|
||||||
If foundBattleScreen = True Then
|
If foundBattleScreen = True Then
|
||||||
|
|
Loading…
Reference in New Issue