Implement TramplesMinimize as a move flag (#175)

* Implement "TramplesMinimize" as a move flag

Implemented `TramplesMinimize` as a move flag. Due to it, removed effect codes `FlinchTargetTrampleMinimize` and `ParalyzeTargetTrampleMinimize` (the second one was exclusive to Body Slam). Moves that had them now have the effect codes `FlinchTarget` and `ParalyzeTarget`, respectively.

The code now does not check if the parameter of `tramplesMinimize?` is 1 or 2, it now checks if it is `true` or `false`. For the effect that causes the moves with this flag to skip accuracy checks, it also checks if `Settings::MECHANICS_GENERATION` is equal to or greater than 6.

Data on which moves are to be treated as able to double damage if Minimized and skip accuracy checks are [here](https://bulbapedia.bulbagarden.net/wiki/Minimize_(move)#Vulnerability_to_moves).

**Remarks:**
- Dragon Rush, Heat Crash and Heavy Slam could not trample Minimize in Gen 5. Dragon Rush and Heat Crash could do so in Gen 6+, but Heavy Slam could not until Gen 7.
- Double Iron Bash could only trample Minimize in Gen 7.

**TL;DR:**
- Implemented `TramplesMinimize` as a move flag.
- Modified the check for this move flag.
- Removed effect codes `FlinchTargetTrampleMinimize` and `ParalyzeTargetTrampleMinimize`. Moves that had them now have the effect codes `FlinchTarget` and `ParalyzeTarget`, respectively.
This commit is contained in:
Keyacom
2022-02-06 20:36:51 +01:00
committed by GitHub
parent e6c877fe06
commit 30c3f472ef
10 changed files with 48 additions and 90 deletions

View File

@@ -82,8 +82,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user crushes its foes by rolling over them. This attack may make the target flinch.
#-------------------------------
@@ -633,7 +633,7 @@ BaseDamage = 100
Accuracy = 75
TotalPP = 10
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove
EffectChance = 20
Description = The user tackles the foe while exhibiting overwhelming menace. It may also make the target flinch.
@@ -3557,8 +3557,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The target is stomped with a big foot. It may also make the target flinch.
#-------------------------------

View File

@@ -132,8 +132,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user crushes its foes by rolling over them. This attack may make the target flinch.
#-------------------------------
@@ -823,8 +823,8 @@ BaseDamage = 100
Accuracy = 75
TotalPP = 10
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 20
Description = The user tackles the foe while exhibiting overwhelming menace. It may also make the target flinch.
#-------------------------------
@@ -1623,7 +1623,7 @@ Accuracy = 95
TotalPP = 10
Target = Other
FunctionCode = EffectivenessIncludesFlyingType
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user dives down onto the target from the sky. This move is Fighting and Flying type simultaneously.
#-------------------------------
[HAMMERARM]
@@ -2439,7 +2439,7 @@ Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = PowerHigherWithUserHeavierThanTarget
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user slams the foe with its flaming body. The heavier the user is, the greater the damage.
#-------------------------------
[SUNNYDAY]
@@ -4326,8 +4326,8 @@ BaseDamage = 85
Accuracy = 100
TotalPP = 15
Target = NearOther
FunctionCode = ParalyzeTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = ParalyzeTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user drops onto the target with its full body weight. It may leave the target with paralysis.
#-------------------------------
@@ -4563,8 +4563,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The target is stomped with a big foot. It may also make the target flinch.
#-------------------------------
@@ -7399,7 +7399,7 @@ Accuracy = 100
TotalPP = 5
Target = NearOther
FunctionCode = HitTwoTimesFlinchTarget
Flags = Contact,CanProtect,Punching
Flags = Contact,CanProtect,Punching,TramplesMinimize
EffectChance = 30
Description = The user rotates, centering the hex nut in its chest, and then strikes twice. May cause flinching.
#-------------------------------
@@ -7487,7 +7487,7 @@ Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = PowerHigherWithUserHeavierThanTarget
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user slams into the foe with its heavy body. The heavier the user, the greater the damage.
#-------------------------------
[METALBURST]

View File

@@ -145,8 +145,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user crushes its foes by rolling over them. This attack may make the target flinch.
#-------------------------------
@@ -932,8 +932,8 @@ BaseDamage = 100
Accuracy = 75
TotalPP = 10
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 20
Description = The user tackles the foe while exhibiting overwhelming menace. It may also make the target flinch.
#-------------------------------
@@ -1913,7 +1913,7 @@ Accuracy = 95
TotalPP = 10
Target = Other
FunctionCode = EffectivenessIncludesFlyingType
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user dives down onto the target from the sky. This move is Fighting and Flying type simultaneously.
#-------------------------------
[HAMMERARM]
@@ -2811,7 +2811,7 @@ Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = PowerHigherWithUserHeavierThanTarget
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user slams the foe with its flaming body. The heavier the user is, the greater the damage.
#-------------------------------
[SUNNYDAY]
@@ -4856,8 +4856,8 @@ BaseDamage = 85
Accuracy = 100
TotalPP = 15
Target = NearOther
FunctionCode = ParalyzeTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = ParalyzeTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user drops onto the target with its full body weight. It may leave the target with paralysis.
#-------------------------------
@@ -5093,8 +5093,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The target is stomped with a big foot. It may also make the target flinch.
#-------------------------------
@@ -8206,7 +8206,7 @@ Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = PowerHigherWithUserHeavierThanTarget
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user slams into the foe with its heavy body. The heavier the user, the greater the damage.
#-------------------------------
[METALBURST]

View File

@@ -145,8 +145,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user crushes its foes by rolling over them. This attack may make the target flinch.
#-------------------------------
@@ -932,8 +932,8 @@ BaseDamage = 100
Accuracy = 75
TotalPP = 10
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 20
Description = The user tackles the foe while exhibiting overwhelming menace. It may also make the target flinch.
#-------------------------------
@@ -1913,7 +1913,7 @@ Accuracy = 95
TotalPP = 10
Target = Other
FunctionCode = EffectivenessIncludesFlyingType
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user dives down onto the target from the sky. This move is Fighting and Flying type simultaneously.
#-------------------------------
[HAMMERARM]
@@ -2811,7 +2811,7 @@ Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = PowerHigherWithUserHeavierThanTarget
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user slams the foe with its flaming body. The heavier the user is, the greater the damage.
#-------------------------------
[SUNNYDAY]
@@ -4856,8 +4856,8 @@ BaseDamage = 85
Accuracy = 100
TotalPP = 15
Target = NearOther
FunctionCode = ParalyzeTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = ParalyzeTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The user drops onto the target with its full body weight. It may leave the target with paralysis.
#-------------------------------
@@ -5093,8 +5093,8 @@ BaseDamage = 65
Accuracy = 100
TotalPP = 20
Target = NearOther
FunctionCode = FlinchTargetTrampleMinimize
Flags = Contact,CanProtect,CanMirrorMove
FunctionCode = FlinchTarget
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
EffectChance = 30
Description = The target is stomped with a big foot. It may also make the target flinch.
#-------------------------------
@@ -8206,7 +8206,7 @@ Accuracy = 100
TotalPP = 10
Target = NearOther
FunctionCode = PowerHigherWithUserHeavierThanTarget
Flags = Contact,CanProtect,CanMirrorMove
Flags = Contact,CanProtect,CanMirrorMove,TramplesMinimize
Description = The user slams into the foe with its heavy body. The heavier the user, the greater the damage.
#-------------------------------
[METALBURST]