aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/fuchsiahouse2.asm
diff options
context:
space:
mode:
authorDaniel Harding <corrnondacqb@yahoo.com>2015-07-22 10:24:00 -0500
committerDaniel Harding <corrnondacqb@yahoo.com>2015-07-22 10:24:00 -0500
commitc34156c5fb333864c1ae85036ea587c9f615a65a (patch)
tree70a98bceda2ec783da896bf3eb4efd1b0861c2a3 /scripts/fuchsiahouse2.asm
parentUnify audio bank references (diff)
parentnamed more constants (diff)
downloadpokeyellow-c34156c5fb333864c1ae85036ea587c9f615a65a.tar.gz
pokeyellow-c34156c5fb333864c1ae85036ea587c9f615a65a.tar.xz
pokeyellow-c34156c5fb333864c1ae85036ea587c9f615a65a.zip
Merge pull request #107 from YamaArashi/master
enumerate events
Diffstat (limited to 'scripts/fuchsiahouse2.asm')
-rwxr-xr-xscripts/fuchsiahouse2.asm12
1 files changed, 4 insertions, 8 deletions
diff --git a/scripts/fuchsiahouse2.asm b/scripts/fuchsiahouse2.asm
index f758b49e..37aebd23 100755
--- a/scripts/fuchsiahouse2.asm
+++ b/scripts/fuchsiahouse2.asm
@@ -10,14 +10,12 @@ FuchsiaHouse2TextPointers: ; 750b8 (1d:50b8)
FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
TX_ASM
- ld a, [wd78e]
- bit 0, a
+ CheckEvent EVENT_GOT_HM04
jr nz, .subtract
ld b,GOLD_TEETH
call IsItemInBag
jr nz, .asm_3f30f
- ld a, [wd78e]
- bit 1, a
+ CheckEvent EVENT_GAVE_GOLD_TEETH
jr nz, .asm_60cba
ld hl, WardenGibberishText1
call PrintText
@@ -36,8 +34,7 @@ FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
ld a, GOLD_TEETH
ld [$ffdb], a
callba RemoveItemByID
- ld hl, wd78e
- set 1, [hl]
+ SetEvent EVENT_GAVE_GOLD_TEETH
.asm_60cba
ld hl, WardenThankYouText
call PrintText
@@ -46,8 +43,7 @@ FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
jr nc, .BagFull
ld hl, ReceivedHM04Text
call PrintText
- ld hl, wd78e
- set 0, [hl]
+ SetEvent EVENT_GOT_HM04
jr .asm_52039
.subtract
ld hl, HM04ExplanationText