diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-12-31 16:08:12 -0600 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2022-02-17 18:59:53 -0600 |
commit | 3de1f79307eda8de1232dfb612097cef261d0431 (patch) | |
tree | 5e8c400a54e6679564684c21eb7cd2eda50aad9a | |
parent | ef97af7d030583c60a5c50e54f6fda5c607b2685 (diff) |
add more to moves header
-rw-r--r-- | include/moves.h | 26 | ||||
-rw-r--r-- | src/code_2.c | 2 | ||||
-rw-r--r-- | src/code_8057824.c | 1 | ||||
-rw-r--r-- | src/friend_rescue.c | 2 | ||||
-rw-r--r-- | src/items.c | 8 | ||||
-rw-r--r-- | src/moves.c | 2 | ||||
-rw-r--r-- | src/moves_1.c | 2 | ||||
-rw-r--r-- | src/pokemon_mid.c | 4 |
8 files changed, 30 insertions, 17 deletions
diff --git a/include/moves.h b/include/moves.h index 22f7ba6..4507593 100644 --- a/include/moves.h +++ b/include/moves.h @@ -2,18 +2,30 @@ #define GUARD_MOVES_H #include "constants/move.h" +#include "constants/move_id.h" -// 0x92A88 +void LoadWazaParameters(void); +u8 sub_809287C(struct PokemonMove *move); void InitPokemonMove(struct PokemonMove *move, u16 moveID); -// 0x92AE0 +void sub_8092AA8(struct PokemonMove *move, u16 moveID); +void InitZeroedPPPokemonMove(struct PokemonMove *move, u16 moveID); s16 GetMoveTargetingFlags(struct PokemonMove *move, u32 isAI); u8 GetMoveType(struct PokemonMove *move); -// 0x92B90 u8 GetMoveWeight(struct PokemonMove *move); +u8 GetMoveHitCount(struct PokemonMove *move); s32 GetMovePower(struct PokemonMove *move); -// 0x92BF4 +u8 GetMoveAccuracy(struct PokemonMove *move, u32 r1); u32 GetMoveMaxPP(struct PokemonMove *move); -// 0x92C54 -bool8 MoveDealsDirectDamage(struct PokemonMove *move); +u8 GetMoveUnk12(struct PokemonMove *move); +u8 GetMoveCriticalHitChance(struct PokemonMove *move); +u8 GetMoveCannotHitFrozen(struct PokemonMove *move); +u8 GetMoveDealsDirectDamage(struct PokemonMove *move); +u32 GetMoveRangeType(struct PokemonMove *move); +void sub_8092C84(u8 *buffer, u16 moveID); +u8 *GetMoveUseText(u16 moveID); +u8 GetMoveAffectedByMagicCoat(u16 moveID); +u8 GetMoveTargetsUser(u16 moveID); +u8 GetMoveAffectedByMuzzled(u16 moveID); +bool8 IsBlockedBySoundproof(struct PokemonMove *move); -#endif +#endif // GUARD_MOVES_H diff --git a/src/code_2.c b/src/code_2.c index 8a6987b..6f142e0 100644 --- a/src/code_2.c +++ b/src/code_2.c @@ -7,6 +7,7 @@ #include "input.h" #include "memory.h" #include "main_menu.h" +#include "moves.h" #include "music.h" #include "play_time.h" #include "save.h" @@ -23,7 +24,6 @@ extern void sub_8097670(void); extern void LoadGameOptions(void); extern void sub_8094C14(void); extern void LoadItemParameters(void); -extern void LoadWazaParameters(void); extern void sub_80950BC(void); extern void sub_80958E8(void); extern void sub_800CD64(u32, u32); diff --git a/src/code_8057824.c b/src/code_8057824.c index d763925..e43cef5 100644 --- a/src/code_8057824.c +++ b/src/code_8057824.c @@ -1,7 +1,6 @@ #include "global.h" #include "dungeon_global_data.h" #include "dungeon_entity.h" -#include "constants/move.h" #include "moves.h" extern u32 gUnknown_80FCF74; diff --git a/src/friend_rescue.c b/src/friend_rescue.c index aacc083..a864e5b 100644 --- a/src/friend_rescue.c +++ b/src/friend_rescue.c @@ -1,5 +1,6 @@ #include "global.h" #include "text.h" +#include "input.h" #include "item.h" #include "team_inventory.h" #include "friend_rescue.h" @@ -19,7 +20,6 @@ extern char gAvailablePokemonNames[0x50]; extern struct WonderMailStruct_203B33C *gUnknown_203B33C; extern u8 sub_8039880(void); -void ResetUnusedInputStruct(void); extern void sub_8035300(void); extern void sub_8035404(u32); diff --git a/src/items.c b/src/items.c index 4b5a710..526dff7 100644 --- a/src/items.c +++ b/src/items.c @@ -5,7 +5,9 @@ #include "team_inventory.h" #include "random.h" #include "pokemon.h" +#include "random.h" #include "subStruct_203B240.h" +#include "team_inventory.h" #include <stddef.h> @@ -702,13 +704,13 @@ u32 sub_80913E0(struct ItemSlot* slot, u32 a2, struct subStruct_203B240 ** a3) u8* typestring; u32 result; - InitPokemonMove(buffer8, move); + InitPokemonMove((struct PokemonMove *)buffer8, move); sub_80078A4(a2, 4, 82, 200, 7); xxx_format_and_draw(4, 84, gPtrTypeText, a2, 0); - moves_data = GetMoveType(buffer8); + moves_data = GetMoveType((struct PokemonMove *)buffer8); typestring = GetUnformattedTypeString(moves_data); xxx_format_and_draw(64, 84, typestring, a2, 0); - result = GetMoveMaxPP(buffer8); + result = GetMoveMaxPP((struct PokemonMove *)buffer8); gUnknown_202DE30 = result; xxx_format_and_draw(128, 84, gPtrPPD0Text, a2, 0); } diff --git a/src/moves.c b/src/moves.c index 0874f00..6b7665b 100644 --- a/src/moves.c +++ b/src/moves.c @@ -2,7 +2,7 @@ #include "moves.h" #include "file_system.h" -#include "constants/move_id.h" +#include "moves.h" struct MoveDataFile { diff --git a/src/moves_1.c b/src/moves_1.c index 5a7bf6b..80f28af 100644 --- a/src/moves_1.c +++ b/src/moves_1.c @@ -1,7 +1,7 @@ #include "global.h" #include "code_8092334.h" +#include "moves.h" #include "pokemon.h" -#include "constants/move_id.h" void SavePokemonMove(struct unkStruct_8094924 *r0, struct PokemonMove *move) { diff --git a/src/pokemon_mid.c b/src/pokemon_mid.c index 791749a..ceb1371 100644 --- a/src/pokemon_mid.c +++ b/src/pokemon_mid.c @@ -1,7 +1,8 @@ #include "global.h" #include "pokemon.h" -#include "item.h" #include "file_system.h" +#include "item.h" +#include "moves.h" #include "subStruct_203B240.h" #include "constants/colors.h" #include "constants/move_id.h" @@ -38,7 +39,6 @@ extern void xxx_pokemon2_to_pokemonstruct_808DF44(struct PokemonStruct*, struct extern u8* sub_8092B18(s16); extern u8* sub_808E07C(u8* a1, u16* a2); extern u8* sub_8092B54(s32); -extern void InitZeroedPPPokemonMove(struct PokemonMove*, u16); extern u32 sub_8097DF0(char *, struct subStruct_203B240 **); struct unkStruct_8107654 { |