summaryrefslogtreecommitdiff
path: root/src/code_08078778.c
blob: 32e422ff53656d76748a8eac795d159eb0a1247a (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include "global.h"
#include "entity.h"
#include "functions.h"

typedef struct {
    u8 unk[4];
    u32 unk2;
    u32 unk4;
} Unk_struct;

extern Unk_struct gUnk_03003DF0[];

void sub_08078778(Entity* ent) {
    sub_0807887C(ent, 1, 0);
}

void sub_08078784(Entity* ent, u32 arg1) {
    sub_0807887C(ent, 1, arg1);
}

void sub_08078790(Entity* ent, u32 arg1) {
    sub_0807887C(ent, 2, arg1);
}

void sub_0807879C(Entity* ent) {
    sub_0807887C(ent, 7, 0);
}

void sub_080787A8(Entity* ent, u32 arg1) {
    sub_0807887C(ent, 7, arg1);
}

void sub_080787B4(Entity* ent) {
    sub_0807887C(ent, 9, 0);
}

void sub_080787C0(Entity* ent) {
    sub_0807887C(ent, 10, 0);
}

void sub_080787CC(Entity* ent) {
    sub_0807887C(ent, 5, 0);
}

s32 sub_080787D8(Entity* ent) {
    s32 iVar1;

    iVar1 = sub_0807887C(ent, 8, 0);
    if (iVar1 >= 0) {
        gUnk_03003DF0[iVar1].unk[10] = 0xbe;
    }
    return iVar1;
}

s32 sub_08078800(Entity* ent) {
    s32 iVar1;

    iVar1 = sub_0807887C(ent, 6, 0);
    if (iVar1 >= 0) {
        gUnk_03003DF0[iVar1].unk[10] = 0xbe;
    }
    return iVar1;
}

s32 sub_08078828(Entity* ent) {
    s32 iVar1;

    iVar1 = sub_0807887C(ent, 3, 0);
    if (iVar1 >= 0) {
        gUnk_03003DF0[iVar1].unk[10] = 0xbe;
    }
    return iVar1;
}

void sub_08078850(u32 arg0, u32 arg1, u32 arg2, u32 arg3) {
    s32 iVar1;

    iVar1 = sub_08078904();
    if (iVar1 >= 0) {
        gUnk_03003DF0[iVar1].unk[8] = arg1;
        gUnk_03003DF0[iVar1].unk[10] = arg2;
        *(&gUnk_03003DF0[iVar1].unk4 + 1) = arg3;
    }
}