37 lines
1.1 KiB
VB.net
37 lines
1.1 KiB
VB.net
Namespace Items.Berries
|
|
|
|
<Item(2000, "Cheri")>
|
|
Public Class CheriBerry
|
|
|
|
Inherits Berry
|
|
|
|
Public Sub New()
|
|
MyBase.New(10800, "A Berry to be consumed by Pokémon. If a Pokémon holds one, it can recover from paralysis on its own in battle.", "2.0cm", "Soft", 2, 3)
|
|
|
|
Me.Spicy = 10
|
|
Me.Dry = 0
|
|
Me.Sweet = 0
|
|
Me.Bitter = 0
|
|
Me.Sour = 0
|
|
|
|
Me.Type = Element.Types.Fire
|
|
Me.Power = 80
|
|
Me.JuiceColor = "red"
|
|
Me.JuiceGroup = 1
|
|
End Sub
|
|
|
|
Public Overrides Sub Use()
|
|
Dim selScreen = New PartyScreen(Core.CurrentScreen, Me, AddressOf Me.UseOnPokemon, "Use " & Me.Name, True) With {.Mode = Screens.UI.ISelectionScreen.ScreenMode.Selection, .CanExit = True}
|
|
AddHandler selScreen.SelectedObject, AddressOf UseItemhandler
|
|
|
|
Core.SetScreen(selScreen)
|
|
End Sub
|
|
|
|
Public Overrides Function UseOnPokemon(ByVal PokeIndex As Integer) As Boolean
|
|
Return HealParalyze(PokeIndex)
|
|
End Function
|
|
|
|
End Class
|
|
|
|
End Namespace
|