P3D-Legacy/P3D/Pokemon/Items/Wings/GeniusWing.vb
JappaWakkaP3D 9723820427 SFX & Battle Animations
Ported Battle Animation Code
Ported Battle Animations for Tackle, Pound, Growl, Ember and Poison Sting
Normalized all SFX by Perceived Loudness (-11.0 LUFS)
Renamed and moved a bunch of the SFX so they make more sense
Added a jingle when you register a Phone Number
Added a soundeffect for when an elevator reaches its destination
2021-08-22 16:10:06 +02:00

37 lines
1.1 KiB
VB.net

Namespace Items.Wings
<Item(257, "Genius Wing")>
Public Class GeniusWing
Inherits WingItem
Public Overrides ReadOnly Property Description As String = "An item for use on a Pokémon. It slightly increases the base Sp. Atk. stat of a single Pokémon."
Public Sub New()
_textureRectangle = New Rectangle(360, 240, 24, 24)
End Sub
Public Overrides Function UseOnPokemon(PokeIndex As Integer) As Boolean
Dim p As Pokemon = Core.Player.Pokemons(PokeIndex)
If CanUseWing(p.EVSpAttack, p) = True Then
p.EVSpAttack += 1
SoundManager.PlaySound("Use_Item", False)
Screen.TextBox.Show("Raised " & p.GetDisplayName() & "'s~Special Attack.", {}, False, False)
PlayerStatistics.Track("[254]Wings 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
End Namespace