35 lines
1.0 KiB
VB.net
35 lines
1.0 KiB
VB.net
Namespace Items.Berries
|
|
|
|
<Item(2003, "Rawst")>
|
|
Public Class RawstBerry
|
|
|
|
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 a burn on its own in battle.", "3.2cm", "Hard", 2, 3)
|
|
|
|
Me.Spicy = 0
|
|
Me.Dry = 0
|
|
Me.Sweet = 0
|
|
Me.Bitter = 10
|
|
Me.Sour = 0
|
|
|
|
Me.Type = Element.Types.Grass
|
|
Me.Power = 80
|
|
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 HealBurn(PokeIndex)
|
|
End Function
|
|
|
|
End Class
|
|
|
|
End Namespace
|