Added a text message when selecting an item in battle that can't be used
The message says: This item can't be used in Battle.
This commit is contained in:
parent
1605ea8afd
commit
7f3445b727
|
@ -815,11 +815,16 @@ Public Class NewInventoryScreen
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Controls.Accept() AndAlso _items.Length > 0 Then
|
If Controls.Accept() AndAlso _items.Length > 0 Then
|
||||||
_infoItemOptionSelection = 0
|
Dim cItem As Item = Item.GetItemByID(_items(ItemIndex + PageIndex * 10).ItemID)
|
||||||
_isInfoShowing = True
|
|
||||||
SoundManager.PlaySound("select")
|
SoundManager.PlaySound("select")
|
||||||
SetInfoSettings()
|
If cItem.CanBeUsedInBattle = True Then
|
||||||
SetItemOptions()
|
_infoItemOptionSelection = 0
|
||||||
|
_isInfoShowing = True
|
||||||
|
SetInfoSettings()
|
||||||
|
SetItemOptions()
|
||||||
|
Else
|
||||||
|
TextBox.Show("This item can't~be used in Battle.")
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If Controls.Dismiss() Then
|
If Controls.Dismiss() Then
|
||||||
|
|
Loading…
Reference in New Issue