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 s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Inherits Item
|
||||
|
||||
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
|
||||
|
||||
End Class
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
|
@ -16,11 +16,11 @@ Namespace Items.XItems
|
|||
Dim foundBattleScreen As Boolean = True
|
||||
Dim s As Screen = Core.CurrentScreen
|
||||
While s.Identification <> Screen.Identifications.BattleScreen
|
||||
s = s.PreScreen
|
||||
If s.PreScreen Is Nothing Then
|
||||
foundBattleScreen = False
|
||||
Exit While
|
||||
End If
|
||||
s = s.PreScreen
|
||||
End While
|
||||
|
||||
If foundBattleScreen = True Then
|
||||
|
|
Loading…
Reference in New Issue