From c53bdc35f8bdd401e90dfae263a3f5fc9182f86b Mon Sep 17 00:00:00 2001 From: Cheng Hann Gan Date: Sun, 12 Dec 2021 15:52:06 -0500 Subject: Dungeon random/AI decomp + converted positions to structs (#83) * Decomped RollPercentChance() * Decomped DungeonRandomCapped() * Decomped DungeonRandom() * Decomped FindRockItemTargets() -Added position struct. --- include/dungeon_ai_items.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/dungeon_ai_items.h') diff --git a/include/dungeon_ai_items.h b/include/dungeon_ai_items.h index b9e7625..f4effd2 100644 --- a/include/dungeon_ai_items.h +++ b/include/dungeon_ai_items.h @@ -2,10 +2,13 @@ #define GUARD_DUNGEON_AI_ITEMS_H #include "dungeon_entity.h" +#include "map.h" // 0x73658 void DecideUseItem(struct DungeonEntity *pokemon); // 0x739DC -void FindStraightThrowableTargets(struct DungeonEntity* pokemon, s32 thrownAIFlag, struct ItemSlot* item, bool8 ignoreRollChance); +void FindStraightThrowableTargets(struct DungeonEntity *pokemon, s32 thrownAIFlag, struct ItemSlot *item, bool8 ignoreRollChance); +// 0x73AA0 +void FindRockItemTargets(struct DungeonEntity *pokemon, struct ItemSlot *item, struct Position potentialTargets[], bool8 ignoreRollChance); #endif -- cgit v1.2.3