diff options
author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-04 00:00:31 -0600 |
---|---|---|
committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-04 00:00:31 -0600 |
commit | c30cf5c6da8283330bc352d58acc037739cd8b72 (patch) | |
tree | 5111fdbfe6da65738816bfb8fd7c3b1a11f3ca29 /src/items.c | |
parent | a61f7ea2a1913df28ea4f3ecd71c57fa4e5bbf5c (diff) |
Decomped EvaluateItem()
Diffstat (limited to 'src/items.c')
-rw-r--r-- | src/items.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/items.c b/src/items.c index ff79822..a19b71b 100644 --- a/src/items.c +++ b/src/items.c @@ -1,6 +1,7 @@ #include "global.h" #include "file_system.h" #include "item.h" +#include "moves.h" #include "team_inventory.h" #include "random.h" #include "pokemon.h" @@ -42,7 +43,6 @@ extern void InitPokemonMove(void*, u16); // first arg is some struct extern void sub_80078A4(u32, u32, u32, u32, u32); extern u32 GetMoveType(void*); extern u8* GetUnformattedTypeString(s16); -extern u32 GetMoveMaxPP(void*); extern void sub_80073E0(u32); extern void xxx_format_and_draw(u32, u32, u8 *, u32, u32); extern s32 sub_8091E94(s32 a1, s32 a2, s32 a3); @@ -698,7 +698,7 @@ u32 sub_80913E0(struct ItemSlot* slot, u32 a2, struct subStruct_203B240 ** a3) xxx_format_and_draw(8, 24, GetItemDescription(slot->itemIndex), a2, 0); if (GetItemType(slot->itemIndex) == ITEM_TYPE_TM) { - u8* buffer8 = buffer88 + 0x50; // field in struct + struct PokemonMove *buffer8 = (struct PokemonMove*) (buffer88 + 0x50); // field in struct u16 move = GetItemMove(slot->itemIndex); u8 moves_data; u8* typestring; |