summaryrefslogtreecommitdiff
path: root/scripts/safarizonesecrethouse.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/safarizonesecrethouse.asm')
-rwxr-xr-xscripts/safarizonesecrethouse.asm20
1 files changed, 9 insertions, 11 deletions
diff --git a/scripts/safarizonesecrethouse.asm b/scripts/safarizonesecrethouse.asm
index 28aae7c4..8881472b 100755
--- a/scripts/safarizonesecrethouse.asm
+++ b/scripts/safarizonesecrethouse.asm
@@ -5,28 +5,26 @@ SafariZoneSecretHouseTextPointers: ; 4a31a (12:631a)
dw SafariZoneSecretHouseText1
SafariZoneSecretHouseText1: ; 4a31c (12:631c)
- db $08 ; asm
- ld a, [wd857]
- bit 0, a
- jr nz, .asm_20a9b ; 0x4a322
+ TX_ASM
+ CheckEvent EVENT_GOT_HM03
+ jr nz, .asm_20a9b
ld hl, SafariZoneSecretHouseText_4a350
call PrintText
- ld bc, (HM_03 << 8) | 1
+ lb bc, HM_03, 1
call GiveItem
jr nc, .BagFull
ld hl, ReceivedHM03Text
call PrintText
- ld hl, wd857
- set 0, [hl]
- jr .asm_8f1fc ; 0x4a33d
+ SetEvent EVENT_GOT_HM03
+ jr .asm_8f1fc
.BagFull
ld hl, HM03NoRoomText
call PrintText
- jr .asm_8f1fc ; 0x4a345
-.asm_20a9b ; 0x4a347
+ jr .asm_8f1fc
+.asm_20a9b
ld hl, HM03ExplanationText
call PrintText
-.asm_8f1fc ; 0x4a34d
+.asm_8f1fc
jp TextScriptEnd
SafariZoneSecretHouseText_4a350: ; 4a350 (12:6350)