From 0829319ee532fb1c6ab0a9f8b5f6ecd5bc26d43d Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sun, 20 Feb 2022 09:08:42 -0800 Subject: these funcs have nothing to do with those so separate them --- src/number_util.c | 65 ------------------------------------------------------- 1 file changed, 65 deletions(-) (limited to 'src/number_util.c') diff --git a/src/number_util.c b/src/number_util.c index 004f149..357d132 100644 --- a/src/number_util.c +++ b/src/number_util.c @@ -1,30 +1,5 @@ #include "global.h" -#include "item.h" #include "number_util.h" -#include "code_8092334.h" -#include "moves.h" - -struct unkStruct_8113080 -{ - u8 unk0; - u8 *unk4; // some string -}; - -extern u8 gUnknown_202DE58[]; -extern u8 gAvailablePokemonNames[]; -extern u8 *gUnknown_811383C[]; -extern struct unkStruct_8113080 gUnknown_8113080[]; - -struct unkStruct_80928C0 -{ - u32 unk0; - s32 unk4; - u8 unk8; - u8 unk9; -}; - -void sub_80928C0(u8 *buffer, struct PokemonMove *move, struct unkStruct_80928C0 *param_3); -extern void xxx_format_string(const char *, u8 *, void *, u32); s32 RoundUpFixedPoint(s32 fixedPointNumber) @@ -47,43 +22,3 @@ s32 RoundUpFixedPoint(s32 fixedPointNumber) } } -void sub_809447C(struct unkStruct_8094924 *r0, u8 *r1) -{ - RestoreIntegerBits(r0, r1, 0x10); - RestoreIntegerBits(r0, r1 + 2, 0x10); -} - -void sub_809449C(struct unkStruct_8094924 *r0, u8 *r1) -{ - SaveIntegerBits(r0, r1, 0x10); - SaveIntegerBits(r0, r1 + 2, 0x10); -} - -void sub_80944BC(s16 moveID, u8 *arg2) -{ - u16 moveID_u16; - s32 moveID_s32 = moveID; - struct PokemonMove stack; - - if (moveID_s32 < 0x1F4) { - // Needed this cast/variable to match - moveID_u16 = moveID_s32; - sub_8092AA8(&stack, moveID_u16); - sub_80928C0(gUnknown_202DE58, &stack, NULL); - xxx_format_string(*gUnknown_811383C, arg2, arg2 + 200, 0); - } else { - strncpy(arg2, gUnknown_8113080[moveID - 0x1F4].unk4, 200); - } -} - -u8 sub_8094528(s16 moveID) -{ - if(moveID < 0x1F4) - { - return 1; - } - else - { - return gUnknown_8113080[moveID - 0x1F4].unk0; - } -} -- cgit v1.2.3