mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-31 01:35:20 +02:00
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…
x
Reference in New Issue
Block a user