mirror of
https://github.com/pret/pokeplatinum.git
synced 2024-11-23 05:49:44 +00:00
24 lines
727 B
C
24 lines
727 B
C
#include "unk_0202F180.h"
|
|
|
|
#include <nitro.h>
|
|
#include <string.h>
|
|
|
|
#include "struct_decls/pokedexdata_decl.h"
|
|
|
|
#include "game_records.h"
|
|
#include "pokemon.h"
|
|
#include "poketch_data.h"
|
|
#include "savedata.h"
|
|
#include "unk_0202631C.h"
|
|
|
|
void sub_0202F180(SaveData *param0, const Pokemon *param1)
|
|
{
|
|
if (Pokemon_GetValue((Pokemon *)param1, MON_DATA_IS_EGG, NULL) == 0) {
|
|
PokedexData *v0 = SaveData_Pokedex(param0);
|
|
|
|
GameRecords_IncrementTrainerScoreOnCatch(SaveData_GetGameRecordsPtr(param0), v0, Pokemon_GetValue((Pokemon *)param1, MON_DATA_SPECIES, NULL));
|
|
sub_0202736C(v0, (Pokemon *)param1);
|
|
PoketchData_PokemonHistoryEnqueue(SaveData_PoketchData(param0), (const BoxPokemon *)param1);
|
|
}
|
|
}
|