Fix for a bug where you couldn't use certain items outside of battle

This commit is contained in:
JappaWakkaP3D 2021-11-26 21:59:52 +01:00
parent 3bdc124a99
commit 8bbbb729a7

View File

@ -821,6 +821,7 @@ Public Class NewInventoryScreen
If Controls.Accept() AndAlso _items.Length > 0 Then If Controls.Accept() AndAlso _items.Length > 0 Then
Dim cItem As Item = Item.GetItemByID(_items(ItemIndex + PageIndex * 10).ItemID) Dim cItem As Item = Item.GetItemByID(_items(ItemIndex + PageIndex * 10).ItemID)
SoundManager.PlaySound("select") SoundManager.PlaySound("select")
If Me.PreScreen.Identification = Screen.Identifications.BattleScreen Then
If cItem.CanBeUsedInBattle = True Then If cItem.CanBeUsedInBattle = True Then
_infoItemOptionSelection = 0 _infoItemOptionSelection = 0
_isInfoShowing = True _isInfoShowing = True
@ -829,8 +830,14 @@ Public Class NewInventoryScreen
Else Else
TextBox.Show("This item can't~be used in Battle.") TextBox.Show("This item can't~be used in Battle.")
End If End If
Else
_infoItemOptionSelection = 0
_isInfoShowing = True
SetInfoSettings()
SetItemOptions()
End If End If
End If
If Controls.Dismiss() Then If Controls.Dismiss() Then
SoundManager.PlaySound("select") SoundManager.PlaySound("select")
_tabInControl = True _tabInControl = True