aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/seafoamislands1.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/seafoamislands1.asm
parentMerge pull request #106 from YamaArashi/master (diff)
downloadpokeyellow-fcab935a0f449246380480613ac0896e0b90a0d8.tar.gz
pokeyellow-fcab935a0f449246380480613ac0896e0b90a0d8.tar.xz
pokeyellow-fcab935a0f449246380480613ac0896e0b90a0d8.zip
enumerate events
Diffstat (limited to 'scripts/seafoamislands1.asm')
-rwxr-xr-xscripts/seafoamislands1.asm9
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/seafoamislands1.asm b/scripts/seafoamislands1.asm
index f71fc648..89972aca 100755
--- a/scripts/seafoamislands1.asm
+++ b/scripts/seafoamislands1.asm
@@ -1,7 +1,6 @@
SeafoamIslands1Script: ; 447e9 (11:47e9)
call EnableAutoTextBoxDrawing
- ld hl, wd7e7
- set 0, [hl]
+ SetEvent EVENT_500
ld hl, wFlags_0xcd60
bit 7, [hl]
res 7, [hl]
@@ -9,18 +8,18 @@ SeafoamIslands1Script: ; 447e9 (11:47e9)
ld hl, Seafoam1HolesCoords
call CheckBoulderCoords
ret nc
- ld hl, wd7e8
+ EventFlagAddress hl, EVENT_50E
ld a, [wCoordIndex]
cp $1
jr nz, .asm_44819
- set 6, [hl]
+ SetEventReuseHL EVENT_50E
ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_1
ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_1
ld [wd07a], a
jr .asm_44825
.asm_44819
- set 7, [hl]
+ SetEventAfterBranchReuseHL EVENT_50F, EVENT_50E
ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_2
ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_2