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
85
86
87
88
89
90
91
|
#include "global.h"
#include "code_80521D0.h"
extern void sub_80526D0(u8 r0);
extern u8 sub_8045888(struct DungeonEntity *r0);
extern void sub_80523A8(struct DungeonEntity *r0, const char r1[], u8 r2);
extern u8 sub_8052DC0(struct DungeonEntity *);
extern u8 sub_803F428(u32);
void sub_805229C(void)
{
return sub_80526D0(0x50);
}
void SendMessage(struct DungeonEntity *pokemon, const char message[])
{
if (sub_8045888(pokemon) != 0){
sub_80523A8(pokemon, message, 1);
}
}
void sub_80522C8(struct DungeonEntity *r0, const char r1[])
{
if (sub_8045888(r0) != 0){
sub_80523A8(r0, r1, 0);
}
}
void sub_80522E8(struct DungeonEntity *r0, const char r1[])
{
sub_80523A8(r0, r1, 0);
}
void sub_80522F4(struct DungeonEntity *r0, struct DungeonEntity *r1, const char r2[])
{
u8 temp;
u32 temp_reg;
u32 temp2;
temp = sub_8045888(r0);
temp_reg = (-temp | temp);
temp2 = temp_reg >> 31;
if(sub_8052DC0(r1) != 0)
{
temp2 = 1;
}
if(temp2 != 0)
{
sub_80523A8(r0, r2, 1);
}
}
void sub_805232C(struct DungeonEntity *r0, struct DungeonEntity *r1, const char r2[])
{
u8 temp;
u32 temp_reg;
u32 temp2;
temp = sub_8045888(r0);
temp_reg = (-temp | temp);
temp2 = temp_reg >> 31;
if(sub_8052DC0(r1) != 0)
{
temp2 = 1;
}
if(temp2 != 0)
{
sub_80523A8(r0, r2, 0);
}
}
void sub_8052364(struct DungeonEntity *r0, u32 r1, const char r2[])
{
u8 temp;
u32 temp_reg;
u32 temp2;
temp = sub_8045888(r0);
temp_reg = (-temp | temp);
temp2 = temp_reg >> 31;
if(sub_803F428(r1) != 0)
{
temp2 = 1;
}
if(temp2 != 0)
{
sub_80523A8(r0, r2, 1);
}
}
void sub_805239C(struct DungeonEntity *r0, const char r1[])
{
sub_80523A8(r0, r1, 1);
}
|