summaryrefslogtreecommitdiff
path: root/scripts/seafoamislands1.asm
diff options
context:
space:
mode:
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