From f8acddc770c4176fb6a6e23e1eda327b238abc0a Mon Sep 17 00:00:00 2001 From: Mateon1 Date: Wed, 25 Sep 2024 12:47:00 +0200 Subject: [PATCH] Add missing includes --- include/code_8041AD0.h | 1 + include/code_8069D4C.h | 2 ++ include/code_8077274_1.h | 2 ++ include/code_808417C.h | 2 ++ include/friend_list_menu.h | 5 +++++ include/gulpin_shop.h | 4 ++-- include/move_checks.h | 2 ++ include/pelipper_board.h | 6 ++++++ include/save_menu.h | 4 +++- 9 files changed, 25 insertions(+), 3 deletions(-) diff --git a/include/code_8041AD0.h b/include/code_8041AD0.h index 8f0859519..626fe14ba 100644 --- a/include/code_8041AD0.h +++ b/include/code_8041AD0.h @@ -1,6 +1,7 @@ #ifndef GUARD_CODE_8041AD0_H #define GUARD_CODE_8041AD0_H +#include "structs/dungeon_entity.h" #include "structs/str_damage.h" void sub_80420E8(Entity *pokemon, struct DamageStruct *dmgStruct); diff --git a/include/code_8069D4C.h b/include/code_8069D4C.h index bb653ea57..81e871d49 100644 --- a/include/code_8069D4C.h +++ b/include/code_8069D4C.h @@ -1,6 +1,8 @@ #ifndef GUARD_CODE_8069D4C_H #define GUARD_CODE_8069D4C_H +#include "structs/dungeon_entity.h" + struct unkStruct_8069D4C { s16 id; diff --git a/include/code_8077274_1.h b/include/code_8077274_1.h index 6c2d689f1..f1466b173 100644 --- a/include/code_8077274_1.h +++ b/include/code_8077274_1.h @@ -1,6 +1,8 @@ #ifndef GUARD_CODE_8077274_1_H #define GUARD_CODE_8077274_1_H +#include "structs/dungeon_entity.h" + void MuzzleTarget(Entity *pokemon, Entity *target); void TransformStatusTarget(Entity * pokemon, Entity * target); void MobileStatusTarget(Entity * pokemon, Entity * target); diff --git a/include/code_808417C.h b/include/code_808417C.h index 669aaf198..4830ac082 100644 --- a/include/code_808417C.h +++ b/include/code_808417C.h @@ -1,6 +1,8 @@ #ifndef GUARD_808417C_H #define GUARD_808417C_H +#include "structs/dungeon_entity.h" + s32 CalculateStatusTurns(Entity *target, s16 *turnRange, bool8 factorCurerSkills); #endif // GUARD_808417C_H diff --git a/include/friend_list_menu.h b/include/friend_list_menu.h index f19724a41..eaf2858fb 100644 --- a/include/friend_list_menu.h +++ b/include/friend_list_menu.h @@ -1,6 +1,11 @@ #ifndef INCLUDE_FRIEND_LIST_MENU_H #define INCLUDE_FRIEND_LIST_MENU_H +#include "structs/menu.h" +#include "structs/str_items.h" +#include "structs/str_moves.h" +#include "structs/str_pokemon.h" + // there might be more overlap with unkStruct_203B2BC // I was working on the moves and put the data that seemed to correspond to that // into a separate struct diff --git a/include/gulpin_shop.h b/include/gulpin_shop.h index 1642cd2a8..6a2aed0af 100644 --- a/include/gulpin_shop.h +++ b/include/gulpin_shop.h @@ -1,10 +1,10 @@ #ifndef GUARD_GULPIN_SHOP_H #define GUARD_GULPIN_SHOP_H -#include "constants/move.h" #include "file_system.h" #include "structs/menu.h" #include "structs/str_text.h" +#include "structs/str_moves.h" // size: 0x18C typedef struct GulpinShopWork @@ -42,4 +42,4 @@ bool8 GulpinIsNextMoveLinked(void); u32 sub_801E8C0(void); -#endif // GUARD_GULPIN_SHOP_H \ No newline at end of file +#endif // GUARD_GULPIN_SHOP_H diff --git a/include/move_checks.h b/include/move_checks.h index 78bbec95b..bf63f4524 100644 --- a/include/move_checks.h +++ b/include/move_checks.h @@ -1,6 +1,8 @@ #ifndef GUARD_MOVE_CHECKS_H #define GUARD_MOVE_CHECKS_H +#include "structs/dungeon_entity.h" + bool8 CanUseOnSelfWithStatusChecker(Entity *pokemon, Move *move); bool8 CanUseOnTargetWithStatusChecker(Entity *user, Entity *target, Move *move); bool8 HasDisabledMove(Move *moves); diff --git a/include/pelipper_board.h b/include/pelipper_board.h index 1cf8b70ca..1495d4b77 100644 --- a/include/pelipper_board.h +++ b/include/pelipper_board.h @@ -1,3 +1,8 @@ +#ifndef GUARD_PELIPPER_BOARD_H +#define GUARD_PELIPPER_BOARD_H + +#include "structs/menu.h" +#include "structs/str_802C39C.h" // Guessing based off of 203B304 struct unkStruct_203B308 @@ -36,3 +41,4 @@ enum PelipperBoardActions PELIPPER_BOARD_ACCEPT, PELIPPER_BOARD_INFO, }; +#endif // GUARD_PELIPPER_BOARD_H diff --git a/include/save_menu.h b/include/save_menu.h index 349e1edb4..56612edb2 100644 --- a/include/save_menu.h +++ b/include/save_menu.h @@ -1,6 +1,8 @@ #ifndef GUARD_SAVE_MENU_H #define GUARD_SAVE_MENU_H +#include "structs/menu.h" + // size: 0x1B4 typedef struct SaveMenuWork { @@ -16,4 +18,4 @@ void CleanSaveMenu(void); void CreateSaveMenu(s32 currMenu); s32 UpdateSaveMenu(void); -#endif // GUARD_SAVE_MENU_H \ No newline at end of file +#endif // GUARD_SAVE_MENU_H