summaryrefslogtreecommitdiff
path: root/arm9/src/unk_0206BB28.c
blob: e7c127936083cae73cf0af604e7e9b80b6daea9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "global.h"
#include "save_block_2.h"
#include "pokedex.h"
#include "pokemon.h"
#include "unk_0206BB28.h"

#pragma thumb on

BOOL SavArray_IsNatDexEnabled(struct SaveBlock2 * sav2)
{
    return Pokedex_IsNatDexEnabled(Sav2_Pokedex_get(sav2));
}

BOOL Pokedex_IsNatDexEnabled(struct Pokedex * pokedex)
{
    return Pokedex_GetNatDexFlag(pokedex) == TRUE;
}

u32 FUN_0206BB48(BOOL isNationalDex, u32 species)
{
    if (!isNationalDex)
        species = SpeciesToSinnohDexNo((u16)species);
    return species;
}