summaryrefslogtreecommitdiff
path: root/include/dungeon_ai_attack.h
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-05 00:07:15 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-10 22:33:12 -0500
commit7e0046a2c9a056f3c3694a8c7b7bb9ac37a8e220 (patch)
treeb7ae8a4f1c8b8f353f9b80ec51e83f417998e50a /include/dungeon_ai_attack.h
parentf7a73281cfdfe36af057d1700cc046b80da98f70 (diff)
Decomped IsTargetInLineRange()
.
Diffstat (limited to 'include/dungeon_ai_attack.h')
-rw-r--r--include/dungeon_ai_attack.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dungeon_ai_attack.h b/include/dungeon_ai_attack.h
index 1878889..bd874a4 100644
--- a/include/dungeon_ai_attack.h
+++ b/include/dungeon_ai_attack.h
@@ -3,6 +3,8 @@
#include "dungeon_entity.h"
+#define RANGED_ATTACK_RANGE 10
+
struct MoveTargetResults
{
bool8 moveUsable;
@@ -14,5 +16,13 @@ struct MoveTargetResults
void DecideAttack(struct DungeonEntity *pokemon);
// 0x7C04C
s32 FindMoveTarget(struct MoveTargetResults *moveTargetResults, struct DungeonEntity *pokemon, struct PokemonMove *move);
+// 0x7C4A0
+bool8 IsTargetInLineRange(struct DungeonEntity *user, struct DungeonEntity *target, s32 range);
+// 0x7C580
+s32 WeightMoveIfUsable(s32 numPotentialTargets, s32 targetingFlags, struct DungeonEntity *user, struct DungeonEntity *target, struct PokemonMove *move, u32 hasStatusChecker);
+// 0x7C648
+bool8 CanUseStatusMove(s32 targetingFlags, struct DungeonEntity *user, struct DungeonEntity *target, struct PokemonMove *move, bool32 hasStatusChecker);
+// 0x7C7AC
+s32 WeightMove(struct DungeonEntity *user, s32 targetingFlags, struct DungeonEntity *target, u32 moveType);
#endif