summaryrefslogtreecommitdiff
path: root/scripts/CeladonDiner.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2019-01-01 15:06:23 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2019-01-01 23:33:10 -0500
commitc7796024590fec48ac79756793c1a6e3b54daf8f (patch)
tree0d61caa7ebe429995a61e800d1d78c3a82aec886 /scripts/CeladonDiner.asm
parent90430e6dee9e207dc0b618d07566f83617343f60 (diff)
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/CeladonDiner.asm')
-rwxr-xr-xscripts/CeladonDiner.asm66
1 files changed, 66 insertions, 0 deletions
diff --git a/scripts/CeladonDiner.asm b/scripts/CeladonDiner.asm
new file mode 100755
index 00000000..371205de
--- /dev/null
+++ b/scripts/CeladonDiner.asm
@@ -0,0 +1,66 @@
+CeladonDiner_Script:
+ call EnableAutoTextBoxDrawing
+ ret
+
+CeladonDiner_TextPointers:
+ dw CeladonDinerText1
+ dw CeladonDinerText2
+ dw CeladonDinerText3
+ dw CeladonDinerText4
+ dw CeladonDinerText5
+
+CeladonDinerText1:
+ TX_FAR _CeladonDinerText1
+ db "@"
+
+CeladonDinerText2:
+ TX_FAR _CeladonDinerText2
+ db "@"
+
+CeladonDinerText3:
+ TX_FAR _CeladonDinerText3
+ db "@"
+
+CeladonDinerText4:
+ TX_FAR _CeladonDinerText4
+ db "@"
+
+CeladonDinerText5:
+ TX_ASM
+ CheckEvent EVENT_GOT_COIN_CASE
+ jr nz, .asm_eb14d
+ ld hl, CeladonDinerText_491a7
+ call PrintText
+ lb bc, COIN_CASE, 1
+ call GiveItem
+ jr nc, .BagFull
+ SetEvent EVENT_GOT_COIN_CASE
+ ld hl, ReceivedCoinCaseText
+ call PrintText
+ jr .asm_68b61
+.BagFull
+ ld hl, CoinCaseNoRoomText
+ call PrintText
+ jr .asm_68b61
+.asm_eb14d
+ ld hl, CeladonDinerText_491b7
+ call PrintText
+.asm_68b61
+ jp TextScriptEnd
+
+CeladonDinerText_491a7:
+ TX_FAR _CeladonDinerText_491a7
+ db "@"
+
+ReceivedCoinCaseText:
+ TX_FAR _ReceivedCoinCaseText
+ TX_SFX_KEY_ITEM
+ db "@"
+
+CoinCaseNoRoomText:
+ TX_FAR _CoinCaseNoRoomText
+ db "@"
+
+CeladonDinerText_491b7:
+ TX_FAR _CeladonDinerText_491b7
+ db "@"