mirror of
https://github.com/pret/pmd-red.git
synced 2026-07-19 09:21:31 -05:00
Renamed some boolean move functions
This commit is contained in:
parent
2a2a0805b4
commit
ece475a480
|
|
@ -392,7 +392,7 @@ IsMoveUsable_2:
|
|||
cmp r1, 0x5
|
||||
bne _08057414
|
||||
adds r0, r4, 0
|
||||
bl GetMoveDealsDirectDamage
|
||||
bl MoveDealsDirectDamage
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0805743E
|
||||
|
|
@ -460,7 +460,7 @@ sub_805744C:
|
|||
cmp r1, 0x5
|
||||
bne _0805748E
|
||||
adds r0, r4, 0
|
||||
bl GetMoveDealsDirectDamage
|
||||
bl MoveDealsDirectDamage
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _080574B6
|
||||
|
|
|
|||
|
|
@ -10965,7 +10965,7 @@ CanUseWithStatusChecker_2:
|
|||
cmp r0, 0x1
|
||||
bne _0805CEE0
|
||||
adds r0, r7, 0
|
||||
bl GetMoveCannotHitFrozen
|
||||
bl MoveCannotHitFrozen
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0805CEE0
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@ s32 GetMovePower(struct PokemonMove *move);
|
|||
// 0x92BF4
|
||||
u32 GetMoveMaxPP(struct PokemonMove *move);
|
||||
// 0x92C54
|
||||
bool8 GetMoveDealsDirectDamage(struct PokemonMove *move);
|
||||
bool8 MoveDealsDirectDamage(struct PokemonMove *move);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ s32 FindMoveTarget(struct MoveTargetResults *moveTargetResults, struct DungeonEn
|
|||
targetingFlags = GetMoveTargetingFlagsForPokemon(pokemon, move, TRUE);
|
||||
hasStatusChecker = HasIQSkill(pokemon, IQ_SKILL_STATUS_CHECKER);
|
||||
moveTargetResults->moveUsable = FALSE;
|
||||
if ((pokemonData->volatileStatus == VOLATILE_STATUS_TAUNTED && !GetMoveDealsDirectDamage(move)) ||
|
||||
if ((pokemonData->volatileStatus == VOLATILE_STATUS_TAUNTED && !MoveDealsDirectDamage(move)) ||
|
||||
(hasStatusChecker && !CanUseWithStatusChecker(pokemon, move)))
|
||||
{
|
||||
return 1;
|
||||
|
|
|
|||
|
|
@ -271,12 +271,12 @@ u8 GetMoveCriticalHitChance(struct PokemonMove *move)
|
|||
return gMovesData[move->moveID].criticalHitChance;
|
||||
}
|
||||
|
||||
bool8 GetMoveCannotHitFrozen(struct PokemonMove *move)
|
||||
bool8 MoveCannotHitFrozen(struct PokemonMove *move)
|
||||
{
|
||||
return gMovesData[move->moveID].cannotHitFrozen;
|
||||
}
|
||||
|
||||
bool8 GetMoveDealsDirectDamage(struct PokemonMove *move)
|
||||
bool8 MoveDealsDirectDamage(struct PokemonMove *move)
|
||||
{
|
||||
return gMovesData[move->moveID].dealsDirectDamage;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user