diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-10-02 23:48:12 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-10-02 23:48:12 -0400 |
commit | 6e62c057f5123b458ebc7d74e60c7ce8fb32e980 (patch) | |
tree | 2d14f321b2663944683171a1c7bdfa93ecdbab7a /src/script_pokemon_util.c | |
parent | 739e7d3c31f02ef4ea91b402c176f17a9bc27911 (diff) |
Document remaining symbols in pokemon.c
Diffstat (limited to 'src/script_pokemon_util.c')
-rwxr-xr-x | src/script_pokemon_util.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/script_pokemon_util.c b/src/script_pokemon_util.c index 93a747772..07e86656e 100755 --- a/src/script_pokemon_util.c +++ b/src/script_pokemon_util.c @@ -65,17 +65,18 @@ u8 ScriptGiveMon(u16 species, u8 level, u16 item, u32 unused1, u32 unused2, u8 u u8 heldItem[2]; struct Pokemon mon; - CreateMon(&mon, species, level, USE_RANDOM_IVS, 0, 0, OT_ID_PLAYER_ID, 0); + CreateMon(&mon, species, level, USE_RANDOM_IVS, FALSE, 0, OT_ID_PLAYER_ID, 0); heldItem[0] = item; heldItem[1] = item >> 8; SetMonData(&mon, MON_DATA_HELD_ITEM, heldItem); sentToPc = GiveMonToPlayer(&mon); nationalDexNum = SpeciesToNationalPokedexNum(species); + // Don't set Pokédex flag for MON_CANT_GIVE switch(sentToPc) { - case 0: - case 1: + case MON_GIVEN_TO_PARTY: + case MON_GIVEN_TO_PC: GetSetPokedexFlag(nationalDexNum, FLAG_SET_SEEN); GetSetPokedexFlag(nationalDexNum, FLAG_SET_CAUGHT); break; |