Fix repels not being removed from bag

This commit is contained in:
JappaWakka 2023-01-23 11:15:54 +01:00
parent 2b0531ed8a
commit 72fceebcb0
1 changed files with 4 additions and 3 deletions

View File

@ -10,13 +10,14 @@
Public Overrides Sub Use()
If Core.Player.RepelSteps <= 0 Then
Me.RemoveItem()
Player.Temp.LastUsedRepel = ID
SoundManager.PlaySound("Use_Repel", False)
Screen.TextBox.Show(Core.Player.Name & " used a~" & Name & ".", {}, True, True)
Core.Player.RepelSteps = RepelSteps
PlayerStatistics.Track("[42]Repels used", 1)
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