Corrected the data type of the SetSeenMon and SetCaughtMon functions

LOuroboros 2024-01-26 07:00:59 -03:00
parent 5ff5cbe7b1
commit 1b32460664
1 changed files with 2 additions and 2 deletions

@ -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);