diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-12-01 16:33:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 14:33:06 -0800 |
commit | 4fc272fea6bc7332fae031ebeb12362cff1c35de (patch) | |
tree | 88092c6da3a6bb741caceab54f5372aee4ad5bae /src/code_801AFA4.c | |
parent | fd8720b75c56ef3f641e6c5abf6c446929c824b9 (diff) |
No wifi + 2 days on train = more decomp (#80)
* No wifi + 2 days on train = more decomp
* layin some more
* one func, one file
Diffstat (limited to 'src/code_801AFA4.c')
-rw-r--r-- | src/code_801AFA4.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/code_801AFA4.c b/src/code_801AFA4.c index 3f00c22..117b34b 100644 --- a/src/code_801AFA4.c +++ b/src/code_801AFA4.c @@ -247,7 +247,6 @@ s32 GetNumMonsAbleToLearnItemMove(void) s32 team [MAX_TEAM_MEMBERS]; struct PokemonStruct *preload; - length = sub_808D580(team); gUnknown_203B22C->monsAbleToLearnMove = 0; @@ -263,3 +262,22 @@ s32 GetNumMonsAbleToLearnItemMove(void) } return gUnknown_203B22C->monsAbleToLearnMove; } + +// Unused +bool8 sub_801B374(u8 itemIndex) +{ + u16 moveID; + struct PokemonStruct *puVar4; + s32 iVar5; + + puVar4 = &gRecruitedPokemonRef->pokemon[0]; + moveID = GetItemMove(itemIndex); + + for(iVar5 = 0; iVar5 < NUM_SPECIES; iVar5++, puVar4++) + { + if((puVar4->unk0 >> 1 & 1) != 0) + if(CanMonLearnMove(moveID, puVar4->speciesNum)) + return FALSE; + } + return TRUE; +} |