Merge pull request #1772 from LOuroboros/gravApple

Added Grav Apple's power boost
This commit is contained in:
Eduardo Quezada D'Ottone 2021-10-17 09:51:29 -03:00 committed by GitHub
commit df817fb2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -381,6 +381,7 @@ gBattleScriptsForMoveEffects::
.4byte BattleScript_EffectTripleHit @ EFFECT_TRIPLE_HIT
.4byte BattleScript_EffectRecoilHP25 @ EFFECT_RECOIL_HP_25
.4byte BattleScript_EffectStuffCheeks @ EFFECT_STUFF_CHEEKS
.4byte BattleScript_EffectDefenseDownHit @ EFFECT_GRAV_APPLE
BattleScript_EffectStuffCheeks::
attackcanceler

View File

@ -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

View File

@ -7690,6 +7690,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

View File

@ -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,