summaryrefslogtreecommitdiff
path: root/scripts/celadonmartroof.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-07-20 18:32:02 -0700
committerYamaArashi <shadow962@live.com>2015-07-20 18:32:26 -0700
commitfcab935a0f449246380480613ac0896e0b90a0d8 (patch)
tree60391cf3fa91cc8173d13cc9fd75c050d9898e0c /scripts/celadonmartroof.asm
parent13e28b0ece7c7888cba792cc6f7219b384213427 (diff)
enumerate events
Diffstat (limited to 'scripts/celadonmartroof.asm')
-rwxr-xr-xscripts/celadonmartroof.asm18
1 files changed, 6 insertions, 12 deletions
diff --git a/scripts/celadonmartroof.asm b/scripts/celadonmartroof.asm
index f83e466d..e509ffeb 100755
--- a/scripts/celadonmartroof.asm
+++ b/scripts/celadonmartroof.asm
@@ -83,8 +83,7 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr z, .asm_484b6
cp SODA_POP
jr z, .asm_48492
- ld a, [wd778]
- bit 6, a
+ CheckEvent EVENT_18E
jr nz, .asm_484e0
ld hl, CeladonMartRoofText_48515
call PrintText
@@ -94,12 +93,10 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr nc, .BagFull
ld hl, ReceivedTM49Text
call PrintText
- ld hl, wd778
- set 6, [hl]
+ SetEvent EVENT_18E
ret
.asm_48492
- ld a, [wd778]
- bit 5, a
+ CheckEvent EVENT_18D
jr nz, .asm_484e0
ld hl, CeladonMartRoofText_48504
call PrintText
@@ -109,12 +106,10 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr nc, .BagFull
ld hl, CeladonMartRoofText_4850a
call PrintText
- ld hl, wd778
- set 5, [hl]
+ SetEvent EVENT_18D
ret
.asm_484b6
- ld a, [wd778]
- bit 4, a
+ CheckEvent EVENT_18C
jr nz, .asm_484e0
ld hl, CeladonMartRoofText_484f3
call PrintText
@@ -124,8 +119,7 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr nc, .BagFull
ld hl, CeladonMartRoofText_484f9
call PrintText
- ld hl, wd778
- set 4, [hl]
+ SetEvent EVENT_18C
ret
.BagFull
ld hl, CeladonMartRoofText_48526