2016-09-19 04:34:12 +02:00
Namespace Items . Vitamins
2016-09-07 18:50:38 +02:00
2016-09-19 04:34:12 +02:00
<Item(31, "Calcium")>
2016-09-07 18:50:38 +02:00
Public Class Calcium
2016-09-19 04:34:12 +02:00
Inherits VitaminItem
2016-09-07 18:50:38 +02:00
2016-09-21 00:04:47 +02:00
Public Overrides ReadOnly Property Description As String = " A nutritious drink for Pokémon. When consumed, it raises the base Sp. Atk stat of a single Pokémon. "
2016-09-07 18:50:38 +02:00
2016-09-21 00:04:47 +02:00
Public Sub New ( )
_textureRectangle = New Rectangle ( 168 , 24 , 24 , 24 )
2016-09-07 18:50:38 +02:00
End Sub
Public Overrides Function UseOnPokemon ( PokeIndex As Integer ) As Boolean
Dim p As Pokemon = Core . Player . Pokemons ( PokeIndex )
If CanUseVitamin ( p . EVSpAttack , p ) = True Then
p . EVSpAttack += 10
p . ChangeFriendShip ( Pokemon . FriendShipCauses . Vitamin )
2021-08-22 16:10:06 +02:00
SoundManager . PlaySound ( " Use_Item " , False )
2016-09-07 18:50:38 +02:00
Screen . TextBox . Show ( " Raised " & p . GetDisplayName ( ) & " 's~Special Attack. " , { } , False , False )
PlayerStatistics . Track ( " [25]Vitamins used " , 1 )
p . CalculateStats ( )
RemoveItem ( )
Return True
Else
Screen . TextBox . Show ( " Cannot raise~ " & p . GetDisplayName ( ) & " 's Special~Attack. " , { } , False , False )
Return False
End If
End Function
End Class
2016-09-19 04:34:12 +02:00
End Namespace