mirror of https://github.com/pret/pokeemerald.git
Corrected the data type of the SetSeenMon and SetCaughtMon functions
parent
5ff5cbe7b1
commit
1b32460664
|
@ -167,12 +167,12 @@ These commands will set either the Seen or the Caught Pokédex flags of a specie
|
||||||
2. Next, our special functions. You can add them to any .c file, although since these are meant to be used from the overworld, I suggest `src/field_specials.c` specifically.
|
2. Next, our special functions. You can add them to any .c file, although since these are meant to be used from the overworld, I suggest `src/field_specials.c` specifically.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
bool8 SetSeenMon(void)
|
void SetSeenMon(void)
|
||||||
{
|
{
|
||||||
GetSetPokedexFlag(SpeciesToNationalPokedexNum(VarGet(VAR_TEMP_1)), FLAG_SET_SEEN);
|
GetSetPokedexFlag(SpeciesToNationalPokedexNum(VarGet(VAR_TEMP_1)), FLAG_SET_SEEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool8 SetCaughtMon(void)
|
void SetCaughtMon(void)
|
||||||
{
|
{
|
||||||
GetSetPokedexFlag(SpeciesToNationalPokedexNum(VarGet(VAR_TEMP_1)), FLAG_SET_SEEN);
|
GetSetPokedexFlag(SpeciesToNationalPokedexNum(VarGet(VAR_TEMP_1)), FLAG_SET_SEEN);
|
||||||
GetSetPokedexFlag(SpeciesToNationalPokedexNum(VarGet(VAR_TEMP_1)), FLAG_SET_CAUGHT);
|
GetSetPokedexFlag(SpeciesToNationalPokedexNum(VarGet(VAR_TEMP_1)), FLAG_SET_CAUGHT);
|
||||||
|
|
Loading…
Reference in New Issue