mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
Gave Grav Apple a move effect of its own
This commit is contained in:
parent
c2e25272b0
commit
59cfbe55c1
@ -381,6 +381,10 @@ gBattleScriptsForMoveEffects::
|
||||
.4byte BattleScript_EffectTripleHit @ EFFECT_TRIPLE_HIT
|
||||
.4byte BattleScript_EffectRecoilHP25 @ EFFECT_RECOIL_HP_25
|
||||
.4byte BattleScript_EffectStuffCheeks @ EFFECT_STUFF_CHEEKS
|
||||
.4byte BattleScript_EffectGravApple @ EFFECT_GRAV_APPLE
|
||||
|
||||
BattleScript_EffectGravApple:
|
||||
goto BattleScript_EffectAttackerDefenseDownHit
|
||||
|
||||
BattleScript_EffectStuffCheeks::
|
||||
attackcanceler
|
||||
|
@ -365,7 +365,8 @@
|
||||
#define EFFECT_TRIPLE_HIT 359
|
||||
#define EFFECT_RECOIL_HP_25 360
|
||||
#define EFFECT_STUFF_CHEEKS 361
|
||||
#define EFFECT_GRAV_APPLE 362
|
||||
|
||||
#define NUM_BATTLE_MOVE_EFFECTS 362
|
||||
#define NUM_BATTLE_MOVE_EFFECTS 363
|
||||
|
||||
#endif // GUARD_CONSTANTS_BATTLE_MOVE_EFFECTS_H
|
||||
|
@ -7693,6 +7693,10 @@ static u16 CalcMoveBasePower(u16 move, u8 battlerAtk, u8 battlerDef)
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case EFFECT_GRAV_APPLE:
|
||||
if (gFieldStatuses & STATUS_FIELD_GRAVITY)
|
||||
MulModifier(&basePower, UQ_4_12(1.5));
|
||||
break;
|
||||
}
|
||||
|
||||
// move-specific base power changes
|
||||
@ -7702,10 +7706,6 @@ static u16 CalcMoveBasePower(u16 move, u8 battlerAtk, u8 battlerDef)
|
||||
if (gBattleMons[battlerAtk].species == SPECIES_GRENINJA_ASH)
|
||||
basePower = 20;
|
||||
break;
|
||||
case MOVE_GRAV_APPLE:
|
||||
if (gFieldStatuses & STATUS_FIELD_GRAVITY)
|
||||
basePower = 120;
|
||||
break;
|
||||
}
|
||||
|
||||
if (basePower == 0)
|
||||
|
@ -11103,7 +11103,7 @@ const struct BattleMove gBattleMoves[MOVES_COUNT] =
|
||||
|
||||
[MOVE_GRAV_APPLE] =
|
||||
{
|
||||
.effect = EFFECT_DEFENSE_DOWN_HIT,
|
||||
.effect = EFFECT_GRAV_APPLE,
|
||||
.power = 80,
|
||||
.type = TYPE_GRASS,
|
||||
.accuracy = 100,
|
||||
|
Loading…
x
Reference in New Issue
Block a user