From f728e7e90ebd50521dbc32f7f2b2be5858d91477 Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Fri, 4 Feb 2022 23:13:01 -0500 Subject: Decomped DecideAttack() --- include/dungeon_ai_attack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/dungeon_ai_attack.h') diff --git a/include/dungeon_ai_attack.h b/include/dungeon_ai_attack.h index 75abcab..77b53fc 100644 --- a/include/dungeon_ai_attack.h +++ b/include/dungeon_ai_attack.h @@ -3,7 +3,7 @@ #include "dungeon_entity.h" -// 0x7C9F8 -bool8 IsTargetStraightAhead(struct DungeonEntity *pokemon, struct DungeonEntity *targetPokemon, s32 facingDir, s32 maxRange); +// 0x7BB94 +void DecideAttack(struct DungeonEntity *pokemon); #endif -- cgit v1.2.3 From a02346be01efa13b6d969a89be642e3450f7ca35 Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Sun, 13 Feb 2022 22:02:17 -0500 Subject: Decomped FindMoveTarget() --- include/dungeon_ai_attack.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/dungeon_ai_attack.h') diff --git a/include/dungeon_ai_attack.h b/include/dungeon_ai_attack.h index 77b53fc..1878889 100644 --- a/include/dungeon_ai_attack.h +++ b/include/dungeon_ai_attack.h @@ -3,7 +3,16 @@ #include "dungeon_entity.h" +struct MoveTargetResults +{ + bool8 moveUsable; + u8 targetDir; + s32 moveWeight; +}; + // 0x7BB94 void DecideAttack(struct DungeonEntity *pokemon); +// 0x7C04C +s32 FindMoveTarget(struct MoveTargetResults *moveTargetResults, struct DungeonEntity *pokemon, struct PokemonMove *move); #endif -- cgit v1.2.3