summaryrefslogtreecommitdiff
path: root/scripts/route1.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2015-08-30 17:55:02 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2015-08-30 17:55:02 -0400
commitd2ed7674f499b1fd6c4059da40b8b42c6bf96995 (patch)
treef581489b522fc647477d7b36dee072d553c44fd1 /scripts/route1.asm
parent3394d8320f35f524231aa13bd9cae34e22246a6d (diff)
parent1a987d1e1ab96ca9553d4253c72858057332a03a (diff)
Merge branch 'master' of https://github.com/iimarckus/pokered
Doesn't build.
Diffstat (limited to 'scripts/route1.asm')
-rwxr-xr-xscripts/route1.asm24
1 files changed, 11 insertions, 13 deletions
diff --git a/scripts/route1.asm b/scripts/route1.asm
index 189b987b..926ffd20 100755
--- a/scripts/route1.asm
+++ b/scripts/route1.asm
@@ -7,24 +7,22 @@ Route1TextPointers: ; 1cab2 (7:4ab2)
dw Route1Text3
Route1Text1: ; 1cab8 (7:4ab8)
- db $08 ; asm
- ld hl, wd7bf
- bit 0, [hl]
- set 0, [hl]
- jr nz, .asm_02840 ; 0x1cac0
+ TX_ASM
+ CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
+ jr nz, .asm_1cada
ld hl, Route1ViridianMartSampleText
call PrintText
- ld bc, (POTION << 8) | 1
+ lb bc, POTION, 1
call GiveItem
jr nc, .BagFull
- ld hl, Route1Text_1cae8 ; $4ae8
- jr .asm_46d43 ; 0x1cad3
+ ld hl, Route1Text_1cae8
+ jr .asm_1cadd
.BagFull
- ld hl, Route1Text_1caf3 ; $4af3
- jr .asm_46d43 ; 0x1cad8
-.asm_02840 ; 0x1cada
- ld hl, Route1Text_1caee ; $4aee
-.asm_46d43 ; 0x1cadd
+ ld hl, Route1Text_1caf3
+ jr .asm_1cadd
+.asm_1cada
+ ld hl, Route1Text_1caee
+.asm_1cadd
call PrintText
jp TextScriptEnd