Namespace BattleSystem.Moves.Steel Public Class GyroBall Inherits Attack Public Sub New() '#Definitions Me.Type = New Element(Element.Types.Steel) Me.ID = 360 Me.OriginalPP = 5 Me.CurrentPP = 5 Me.MaxPP = 5 Me.Power = 0 Me.Accuracy = 100 Me.Category = Categories.Physical Me.ContestCategory = ContestCategories.Cool Me.Name = "Gyro Ball" Me.Description = "The user tackles the target with a high-speed spin. The slower the user, the greater the damage." Me.CriticalChance = 1 Me.IsHMMove = False 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 = True Me.CounterAffected = True Me.DisabledWhileGravity = False Me.UseEffectiveness = True Me.ImmunityAffected = True Me.HasSecondaryEffect = False Me.RemovesFrozen = 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 Me.IsBulletMove = True '#End End Sub Public Overrides Function GetBasePower(own As Boolean, BattleScreen As BattleScreen) As Integer Dim p As Pokemon = BattleScreen.OwnPokemon Dim op As Pokemon = BattleScreen.OppPokemon If own = False Then p = BattleScreen.OppPokemon op = BattleScreen.OwnPokemon End If Dim p_Speed As Integer = BattleCalculation.DetermineBattleSpeed(own, BattleScreen) Dim op_Speed As Integer = BattleCalculation.DetermineBattleSpeed(Not own, BattleScreen) Dim basepower As Integer = CInt(Math.Ceiling(25 * (op_Speed / p_Speed))) basepower = basepower.Clamp(1, 150) Return basepower End Function End Class End Namespace