more decomp and documentation

This commit is contained in:
Seth Barberee
2024-09-07 11:04:03 -07:00
parent 24da346796
commit 6a1a7bcaff
11 changed files with 180 additions and 307 deletions

View File

@@ -40,13 +40,6 @@ typedef struct PokemonStruct1
/* 0x4C */ u8 name[POKEMON_NAME_LENGTH];
} PokemonStruct1;
// size: 0x4
typedef struct unkStruct_808E6F4
{
s16 unk0;
u8 unk2;
} unkStruct_808E6F4;
// size: 0x4
typedef struct EvolveStage
{
@@ -78,11 +71,11 @@ typedef struct PokemonStruct2
/* 0x18 */ u32 currExp;
/* 0x1C */ unkStruct_8094184 moves;
/* 0x40 */ Item itemSlot; // heldItem
/* 0x44 */ FixedPoint unk44;
/* 0x48 */ FixedPoint unk48;
u32 belly; // some struct
u32 maxBelly; // some struct (same type as 44)
/* 0x4C */ u32 IQSkills; // unk20
/* 0x50 */ u8 tacticIndex;
unkStruct_808E6F4 unk54;
/* 0x54 */ HiddenPower hiddenPower;
/* 0x58 */ u8 name[POKEMON_NAME_LENGTH]; // name (other offset)
} PokemonStruct2;

View File

@@ -0,0 +1,27 @@
#ifndef GUARD_STRUCT_8069D4C_H
#define GUARD_STRUCT_8069D4C_H
#include "structs/dungeon_entity.h"
#include "structs/str_items.h"
#include "structs/str_pokemon.h"
#include "structs/str_position.h"
struct unkStruct_8069D4C
{
s16 id;
Position pos;
s16 HP;
// NOTE: cannot re-use offense struct as it pads.
u8 att[2]; // Atk, SpAtk
u8 def[2]; // Def, SpDef
u16 level;
u32 exp;
u32 belly;
u32 maxBelly;
Item heldItem;
unkStruct_8094184 moves;
HiddenPower hiddenPower;
};
#endif // GUARD_STRUCT_8069D4C_H