Dump and convert Pokedex Entries and Text to C.
This commit is contained in:
+28
-8
@@ -1,15 +1,14 @@
|
||||
#ifndef GUARD_POKEDEX_H
|
||||
#define GUARD_POKEDEX_H
|
||||
|
||||
#include "global.h"
|
||||
#define KANTO_DEX_COUNT 151
|
||||
#define NATIONAL_DEX_COUNT 386
|
||||
|
||||
void ResetPokedex(void);
|
||||
void CopyMonCategoryText(u16 species, u8 *dst);
|
||||
u16 GetPokedexHeightWeight(u16 dexNum, u8 data);
|
||||
u16 GetNationalPokedexCount(u8);
|
||||
u16 GetKantoPokedexCount(u8);
|
||||
bool16 HasAllKantoMons(void);
|
||||
u8 CreateDexDisplayMonDataTask(u16 dexNum, u32 trainerId, u32 personality);
|
||||
enum
|
||||
{
|
||||
DEX_MODE_HOENN,
|
||||
DEX_MODE_NATIONAL
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -19,6 +18,27 @@ enum
|
||||
FLAG_SET_CAUGHT
|
||||
};
|
||||
|
||||
struct PokedexEntry
|
||||
{
|
||||
/*0x00*/ u8 categoryName[12];
|
||||
/*0x0C*/ u16 height; //in decimeters
|
||||
/*0x0E*/ u16 weight; //in hectograms
|
||||
/*0x10*/ const u8 *description;
|
||||
/*0x14*/ const u8 *unusedDescription;
|
||||
/*0x18*/ u16 unused;
|
||||
/*0x1A*/ u16 pokemonScale;
|
||||
/*0x1C*/ u16 pokemonOffset;
|
||||
/*0x1E*/ u16 trainerScale;
|
||||
/*0x20*/ u16 trainerOffset;
|
||||
}; /*size = 0x24*/
|
||||
|
||||
void ResetPokedex(void);
|
||||
void CopyMonCategoryText(u16 species, u8 *dst);
|
||||
u16 GetPokedexHeightWeight(u16 dexNum, u8 data);
|
||||
u16 GetNationalPokedexCount(u8);
|
||||
u16 GetKantoPokedexCount(u8);
|
||||
bool16 HasAllKantoMons(void);
|
||||
u8 CreateDexDisplayMonDataTask(u16 dexNum, u32 trainerId, u32 personality);
|
||||
s8 GetSetPokedexFlag(u16 nationalNum, u8 caseId);
|
||||
u16 pokedex_count(u8);
|
||||
u16 sub_80C0844(u8);
|
||||
|
||||
Reference in New Issue
Block a user