aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/CeladonDiner_2.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/CeladonDiner_2.asm')
-rw-r--r--scripts/CeladonDiner_2.asm38
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/CeladonDiner_2.asm b/scripts/CeladonDiner_2.asm
new file mode 100644
index 00000000..28e6f11a
--- /dev/null
+++ b/scripts/CeladonDiner_2.asm
@@ -0,0 +1,38 @@
+CeladonDinerPrintGymGuideText::
+ CheckEvent EVENT_GOT_COIN_CASE
+ jr nz, .got_item
+ ld hl, .ImFlatOutBustedText
+ call PrintText
+ lb bc, COIN_CASE, 1
+ call GiveItem
+ jr nc, .bag_full
+ SetEvent EVENT_GOT_COIN_CASE
+ ld hl, .ReceivedCoinCaseText
+ call PrintText
+ jr .done
+.bag_full
+ ld hl, .CoinCaseNoRoomText
+ call PrintText
+ jr .done
+.got_item
+ ld hl, .WinItBackText
+ call PrintText
+.done
+ ret
+
+.ImFlatOutBustedText:
+ text_far _CeladonDinerGymGuideImFlatOutBustedText
+ text_end
+
+.ReceivedCoinCaseText:
+ text_far _CeladonDinerGymGuideReceivedCoinCaseText
+ sound_get_key_item
+ text_end
+
+.CoinCaseNoRoomText:
+ text_far _CeladonDinerGymGuideCoinCaseNoRoomText
+ text_end
+
+.WinItBackText:
+ text_far _CeladonDinerGymGuideWinItBackText
+ text_end