diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2020-07-16 17:00:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 17:00:57 -0400 |
commit | d44c7c305c3f94b59e3e2c008408779836a0020a (patch) | |
tree | 2cdc51be4a22992701038b959d6c964e9ee8fc58 /scripts/Route2Gate.asm | |
parent | b9a113a9f4712771e37313a4c8a76f7ef23cebb2 (diff) | |
parent | 7306c1dc2dca5666a5276a6758d1a64e1ddeae20 (diff) |
Merge pull request #277 from Rangi42/master
Miscellaneous constant and label updates
Diffstat (limited to 'scripts/Route2Gate.asm')
-rwxr-xr-x | scripts/Route2Gate.asm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/Route2Gate.asm b/scripts/Route2Gate.asm index d9d30218..60f6ffe1 100755 --- a/scripts/Route2Gate.asm +++ b/scripts/Route2Gate.asm @@ -8,10 +8,10 @@ Route2Gate_TextPointers: Route2GateText1: text_asm CheckEvent EVENT_GOT_HM05 - jr nz, .asm_5d60d - ld a, 10 ; pokemon needed + jr nz, .got_item + ld a, 10 ldh [hOaksAideRequirement], a - ld a, HM_FLASH ; oak's aide reward + ld a, HM_FLASH ldh [hOaksAideRewardItem], a ld [wd11e], a call GetItemName @@ -21,13 +21,13 @@ Route2GateText1: call CopyData predef OaksAideScript ldh a, [hOaksAideResult] - cp $1 - jr nz, .asm_5d613 + cp OAKS_AIDE_GOT_ITEM + jr nz, .no_item SetEvent EVENT_GOT_HM05 -.asm_5d60d +.got_item ld hl, Route2GateText_5d616 call PrintText -.asm_5d613 +.no_item jp TextScriptEnd Route2GateText_5d616: |