86 lines
2.6 KiB
VB.net
86 lines
2.6 KiB
VB.net
Namespace BattleSystem.Moves.Fighting
|
|
|
|
Public Class Ride
|
|
|
|
Inherits Attack
|
|
|
|
Public Sub New()
|
|
'#Definitions
|
|
Me.Type = New Element(Element.Types.Fighting)
|
|
Me.ID = 560
|
|
Me.OriginalPP = 20
|
|
Me.CurrentPP = 20
|
|
Me.MaxPP = 20
|
|
Me.Power = 60
|
|
Me.Accuracy = 100
|
|
Me.Category = Categories.Physical
|
|
Me.ContestCategory = ContestCategories.Cool
|
|
Me.Name = "Ride"
|
|
Me.Description = "The user runs over the target rapidly. The power rises when the user's accuracy stat is low."
|
|
Me.CriticalChance = 1
|
|
Me.IsHMMove = True
|
|
Me.Target = Targets.OneAdjacentTarget
|
|
Me.Priority = 0
|
|
Me.TimesToAttack = 1
|
|
'#End
|
|
|
|
'#SpecialDefinitions
|
|
Me.MakesContact = True
|
|
Me.ProtectAffected = True
|
|
Me.MagicCoatAffected = False
|
|
Me.SnatchAffected = False
|
|
Me.MirrorMoveAffected = True
|
|
Me.KingsrockAffected = False
|
|
Me.CounterAffected = True
|
|
|
|
Me.DisabledWhileGravity = False
|
|
Me.UseEffectiveness = True
|
|
Me.ImmunityAffected = True
|
|
Me.RemovesFrozen = False
|
|
Me.HasSecondaryEffect = False
|
|
|
|
Me.IsHealingMove = False
|
|
Me.IsRecoilMove = False
|
|
Me.IsPunchingMove = False
|
|
Me.IsDamagingMove = True
|
|
Me.IsProtectMove = False
|
|
Me.IsSoundMove = False
|
|
|
|
Me.IsAffectedBySubstitute = True
|
|
Me.IsOneHitKOMove = False
|
|
Me.IsWonderGuardAffected = True
|
|
'#End
|
|
End Sub
|
|
|
|
Public Overrides Function GetBasePower(own As Boolean, BattleScreen As BattleScreen) As Integer
|
|
Dim p As Pokemon = BattleScreen.OwnPokemon
|
|
If own = False Then
|
|
p = BattleScreen.OppPokemon
|
|
End If
|
|
|
|
Dim accLevel As Integer = p.Accuracy
|
|
If accLevel >= 0 Then
|
|
Return Me.Power
|
|
Else
|
|
Select Case accLevel
|
|
Case -1
|
|
Return 75
|
|
Case -2
|
|
Return 90
|
|
Case -3
|
|
Return 105
|
|
Case -4
|
|
Return 120
|
|
Case -5
|
|
Return 135
|
|
Case -6
|
|
Return 150
|
|
End Select
|
|
End If
|
|
|
|
Return Me.Power
|
|
End Function
|
|
|
|
End Class
|
|
|
|
End Namespace |