mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
sub_818E3EC
This commit is contained in:
parent
fdea92edff
commit
5fb39d5ef9
@ -5,38 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_818E3EC
|
||||
sub_818E3EC: @ 818E3EC
|
||||
push {r4,lr}
|
||||
ldr r4, =gUnknown_0203CD68
|
||||
ldr r0, =gSaveBlock1Ptr
|
||||
ldr r0, [r0]
|
||||
ldr r1, =0x00003b58
|
||||
adds r0, r1
|
||||
str r0, [r4]
|
||||
bl sub_818E298
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0818E41C
|
||||
ldr r0, [r4]
|
||||
adds r1, r0, 0
|
||||
adds r1, 0x2B
|
||||
ldrb r1, [r1]
|
||||
adds r0, 0x2C
|
||||
b _0818E422
|
||||
.pool
|
||||
_0818E41C:
|
||||
ldr r0, [r4]
|
||||
adds r0, 0x2C
|
||||
movs r1, 0x10
|
||||
_0818E422:
|
||||
strb r1, [r0]
|
||||
bl sub_818DF00
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_818E3EC
|
||||
|
||||
thumb_func_start sub_818E430
|
||||
sub_818E430: @ 818E430
|
||||
push {r4,r5,lr}
|
||||
|
@ -622,3 +622,17 @@ void sub_818E3E0(void)
|
||||
{
|
||||
sub_81AAC70();
|
||||
}
|
||||
|
||||
void sub_818E3EC(void)
|
||||
{
|
||||
gUnknown_0203CD68 = &gSaveBlock1Ptr->lilycoveLady.quiz;
|
||||
if (sub_818E298())
|
||||
{
|
||||
gUnknown_0203CD68->unk_02c = gUnknown_0203CD68->unk_02b;
|
||||
}
|
||||
else
|
||||
{
|
||||
gUnknown_0203CD68->unk_02c = 0x10;
|
||||
}
|
||||
sub_818DF00();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user