summaryrefslogtreecommitdiff
path: root/scripts/lab4.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/lab4.asm
parent13e28b0ece7c7888cba792cc6f7219b384213427 (diff)
enumerate events
Diffstat (limited to 'scripts/lab4.asm')
-rwxr-xr-xscripts/lab4.asm11
1 files changed, 3 insertions, 8 deletions
diff --git a/scripts/lab4.asm b/scripts/lab4.asm
index 21fee0c6..44dcb2c3 100755
--- a/scripts/lab4.asm
+++ b/scripts/lab4.asm
@@ -49,8 +49,7 @@ FossilsList: ; 75d68 (1d:5d68)
Lab4Text1: ; 75d6c (1d:5d6c)
TX_ASM
- ld a, [wd7a3]
- bit 0, a
+ CheckEvent EVENT_2E0
jr nz, .asm_75d96
ld hl, Lab4Text_75dc6
call PrintText
@@ -75,17 +74,13 @@ Lab4Text1: ; 75d6c (1d:5d6c)
call LoadFossilItemAndMonNameBank1D
ld hl, Lab4Text_75dd5
call PrintText
- ld hl, wd7a3
- set 2, [hl]
+ SetEvent EVENT_2E2
ld a, [W_FOSSILMON]
ld b, a
ld c, 30
call GivePokemon
jr nc, .asm_75d93
- ld hl, wd7a3
- res 0, [hl]
- res 1, [hl]
- res 2, [hl]
+ ResetEvents EVENT_2E0, EVENT_2E1, EVENT_2E2
jr .asm_75d93
Lab4Text_75dc6: ; 75dc6 (1d:5dc6)