summaryrefslogtreecommitdiff
path: root/scripts/Route12SuperRodHouse.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2019-01-13 22:38:16 -0600
committerGitHub <noreply@github.com>2019-01-13 22:38:16 -0600
commit725b86ebbec23bd1f53fd60bf0201c904fee951d (patch)
treea37f4d33c5b77635c7ff72b91a73fcd90c4af915 /scripts/Route12SuperRodHouse.asm
parent108245cb21abb3abac051b7db84ed6c694192a61 (diff)
parentc7796024590fec48ac79756793c1a6e3b54daf8f (diff)
Merge pull request #196 from Rangi42/polishedmaps
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/Route12SuperRodHouse.asm')
-rwxr-xr-xscripts/Route12SuperRodHouse.asm57
1 files changed, 57 insertions, 0 deletions
diff --git a/scripts/Route12SuperRodHouse.asm b/scripts/Route12SuperRodHouse.asm
new file mode 100755
index 00000000..de8ed8f0
--- /dev/null
+++ b/scripts/Route12SuperRodHouse.asm
@@ -0,0 +1,57 @@
+Route12SuperRodHouse_Script:
+ jp EnableAutoTextBoxDrawing
+
+Route12SuperRodHouse_TextPointers:
+ dw Route12HouseText1
+
+Route12HouseText1:
+ TX_ASM
+ ld a, [wd728]
+ bit 5, a
+ jr nz, .asm_b4cad
+ ld hl, Route12HouseText_564c0
+ call PrintText
+ call YesNoChoice
+ ld a, [wCurrentMenuItem]
+ and a
+ jr nz, .asm_a2d76
+ lb bc, SUPER_ROD, 1
+ call GiveItem
+ jr nc, .BagFull
+ ld hl, wd728
+ set 5, [hl]
+ ld hl, Route12HouseText_564c5
+ jr .asm_df984
+.BagFull
+ ld hl, Route12HouseText_564d9
+ jr .asm_df984
+.asm_a2d76
+ ld hl, Route12HouseText_564cf
+ jr .asm_df984
+.asm_b4cad
+ ld hl, Route12HouseText_564d4
+.asm_df984
+ call PrintText
+ jp TextScriptEnd
+
+Route12HouseText_564c0:
+ TX_FAR _Route12HouseText_564c0
+ db "@"
+
+Route12HouseText_564c5:
+ TX_FAR _Route12HouseText_564c5
+ TX_SFX_ITEM_1
+ TX_FAR _Route12HouseText_564ca
+ db "@"
+
+Route12HouseText_564cf:
+ TX_FAR _Route12HouseText_564cf
+ db "@"
+
+Route12HouseText_564d4:
+ TX_FAR _Route12HouseText_564d4
+ db "@"
+
+Route12HouseText_564d9:
+ TX_FAR _Route12HouseText_564d9
+ db "@"