Fixed items usable when none are left

This commit is contained in:
JappaWakka 2023-01-27 18:20:45 +01:00
parent 32bd5ed36e
commit 9b7e52e9e6
2 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,6 @@
Dim t As String = Core.Player.Name & " used a~" & Name & "."
t &= RemoveItem()
Screen.TextBox.Show(t, {}, True, True)
CType(CurrentScreen, NewInventoryScreen).LoadItems()
Else
Screen.TextBox.Show("The Repel is still~in effect.", {}, True, True)
End If

View File

@ -909,6 +909,7 @@ Public Class NewInventoryScreen
Select Case _infoItemOptionsNormal(_infoItemOptionSelection)
Case INFO_ITEM_OPTION_USE
cItem.Use()
LoadItems()
Case INFO_ITEM_OPTION_GIVE
Dim selScreen = New PartyScreen(Core.CurrentScreen) With {.Mode = ISelectionScreen.ScreenMode.Selection, .CanExit = True}
AddHandler selScreen.SelectedObject, AddressOf GiveItemHandler