diff options
author | Dennis <dhilhorst2000@gmail.com> | 2021-07-26 06:11:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 21:11:01 -0700 |
commit | 645c45431b0e091234699c3706ff90d1654cfb57 (patch) | |
tree | 412551a72247c0d9b21049d5addcbe34014419d3 /src/pokemon.c | |
parent | bad7f7f688253c87c2cb2d063ea57c884cb6adff (diff) |
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
Diffstat (limited to 'src/pokemon.c')
-rw-r--r-- | src/pokemon.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } } |