summaryrefslogtreecommitdiff
path: root/src/pokemon_1.c
blob: 6d4cf75622c988d1ac93731cb8aedd726bef50c1 (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
26
27
28
29
30
31
#include "global.h"
#include "pokemon.h"
#include "file_system.h"

extern int sprintf(char *, const char *, ...);

extern struct gPokemon *gMonsterParameters;
extern struct FileArchive gUnknown_8510000;
extern const char gUnknown_8107684;

//u8 sub_808DDD0(s16 r0)
//{
//    // Looks like this loads the dialogue sprite for the pokemon
//
//    // TODO stack is being added instead of being substracted
//    // Else this matches
//    char buffer[0xC];
//    if(gMonsterParameters[r0].dialogue_sprites != 0)
//    {
//        sprintf(buffer, &gUnknown_8107684);
//        OpenFileAndGetFileDataPtr(buffer, &gUnknown_8510000);
//        return;
//    }
//    return 0;
//}

bool8 sub_808DE10(s16 r0, s32 r1)
{
    // checking to see if dialogue sprite is available??
    return (gMonsterParameters[r0].dialogue_sprites >> r1) & 1;
}