2016-09-20 06:29:17 +02:00
|
|
|
|
Namespace Items.Repels
|
|
|
|
|
|
|
|
|
|
Public MustInherit Class RepelItem
|
|
|
|
|
|
|
|
|
|
Inherits Item
|
|
|
|
|
|
|
|
|
|
Public Overrides ReadOnly Property CanBeUsedInBattle As Boolean = False
|
|
|
|
|
|
|
|
|
|
Public MustOverride ReadOnly Property RepelSteps As Integer
|
|
|
|
|
|
|
|
|
|
Public Overrides Sub Use()
|
|
|
|
|
If Core.Player.RepelSteps <= 0 Then
|
2023-01-15 14:39:25 +01:00
|
|
|
|
Me.RemoveItem()
|
2016-09-20 06:29:17 +02:00
|
|
|
|
Player.Temp.LastUsedRepel = ID
|
|
|
|
|
|
2021-08-22 16:10:06 +02:00
|
|
|
|
SoundManager.PlaySound("Use_Repel", False)
|
2022-11-18 15:08:34 +01:00
|
|
|
|
Screen.TextBox.Show(Core.Player.Name & " used a~" & Name & ".", {}, True, True)
|
2016-09-20 06:29:17 +02:00
|
|
|
|
Core.Player.RepelSteps = RepelSteps
|
|
|
|
|
PlayerStatistics.Track("[42]Repels used", 1)
|
|
|
|
|
Else
|
|
|
|
|
Screen.TextBox.Show("The Repel is still~in effect.", {}, True, True)
|
|
|
|
|
End If
|
|
|
|
|
End Sub
|
|
|
|
|
|
|
|
|
|
End Class
|
|
|
|
|
|
|
|
|
|
End Namespace
|