mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-31 01:35:20 +02:00
fixed fake-out/first impression working on 2 turns fixed protecting move breaking messages fixed trapping/binding moves and abilities fixed flinch message popping up unnecessarily updated natural gift BP calculation updated some moves' contest category and other stats added roseli, kee, maranga berry effects added alolan pokemon abilities added smacking down effect added terrain as well as its effects replaced polkadot bow (no use) with berserk gene other minor fixes such as typos, captalizations wrapping up other commits
84 lines
2.5 KiB
VB.net
84 lines
2.5 KiB
VB.net
Namespace BattleSystem.Moves.Normal
|
|
|
|
Public Class Barrage
|
|
|
|
Inherits Attack
|
|
|
|
Public Sub New()
|
|
'#Definitions
|
|
Me.Type = New Element(Element.Types.Normal)
|
|
Me.ID = 140
|
|
Me.OriginalPP = 20
|
|
Me.CurrentPP = 20
|
|
Me.MaxPP = 20
|
|
Me.Power = 15
|
|
Me.Accuracy = 85
|
|
Me.Category = Categories.Physical
|
|
Me.ContestCategory = ContestCategories.Cute
|
|
Me.Name = "Barrage"
|
|
Me.Description = "Round objects are hurled at the target to strike two to five times in a row."
|
|
Me.CriticalChance = 1
|
|
Me.IsHMMove = False
|
|
Me.Target = Targets.OneAdjacentTarget
|
|
Me.Priority = 0
|
|
Me.TimesToAttack = 1
|
|
'#End
|
|
|
|
'#SpecialDefinitions
|
|
Me.MakesContact = False
|
|
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 GetTimesToAttack(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
|
|
|
|
If p.Ability.Name.ToLower() = "skill link" Then
|
|
Return 5
|
|
End If
|
|
|
|
Dim r As Integer = Core.Random.Next(0, 100)
|
|
If r < 37 Then
|
|
Return 2
|
|
ElseIf r >= 37 And r < 75 Then
|
|
Return 3
|
|
ElseIf r >= 75 And r < 88 Then
|
|
Return 4
|
|
ElseIf r >= 88 Then
|
|
Return 5
|
|
End If
|
|
|
|
Return 2
|
|
End Function
|
|
|
|
End Class
|
|
|
|
End Namespace |