blob: 1379eb9952ea8984be7a49de91150dc8ace654d2 (
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
|
#include "constants/songs.h"
#include "global.h"
#include "menu.h"
#include "mystery_event_script.h"
#include "sound.h"
#include "text.h"
void sub_812AF10(void);
bool8 unref_sub_812AECC(u8 *script)
{
u8 result = RunMysteryEventScript(script);
switch (result)
{
case 0:
return FALSE;
case 1:
PlaySE(SE_BOO);
return TRUE;
case 2:
sub_812AF10();
return FALSE;
case 3:
PlaySE(SE_BOO);
sub_812AF10();
return TRUE;
default:
return FALSE;
}
}
void sub_812AF10(void)
{
Menu_DrawStdWindowFrame(2, 14, 27, 19);
Menu_PrintText(gStringVar4, 3, 15);
}
|