From 645c45431b0e091234699c3706ff90d1654cfb57 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 26 Jul 2021 06:11:01 +0200 Subject: Pokemon related decomp (#47) * decompile last function in pokemon_1.s * some pokemon related decomp * more decomp * decomp another function * decompile function * another one * decompile GetPokemonLevelData * decompile more * more decomp * more structure and decomp * decomp another function (need to do some renaming) * rename some stuff * I cant do anything without committing these 2 files --- src/pokemon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/pokemon.c') diff --git a/src/pokemon.c b/src/pokemon.c index 263e482..a9ca120 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -2,6 +2,7 @@ #include "pokemon.h" #include "file_system.h" + extern struct FileArchive gSystemFileArchive; extern const char gUnknown_81075F4; EWRAM_DATA struct gPokemon *gMonsterParameters; @@ -10,6 +11,7 @@ EWRAM_DATA struct unkStruct_203B45C gRecruitedPokemon; extern struct unkStruct_203B45C *gRecruitedPokemonRef; EWRAM_DATA u16 gLevelCurrentPokeId; + void LoadMonsterParameters(void) { gRecruitedPokemonRef = &gRecruitedPokemon; @@ -39,7 +41,7 @@ void InitializeRecruitedPokemon(void) for(iVar3 = 0; iVar3 < 4; iVar3++) { - gRecruitedPokemonRef->pokemon3[iVar3].unk8 = 0; - gRecruitedPokemonRef->pokemon3[iVar3].unk0 = 0; + gRecruitedPokemonRef->team[iVar3].speciesNum = 0; + gRecruitedPokemonRef->team[iVar3].unk0 = 0; } } -- cgit v1.2.3