aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/CeladonDiner_2.asm
diff options
context:
space:
mode:
authordannye <33dannye@gmail.com>2023-11-20 00:33:27 -0600
committerdannye <33dannye@gmail.com>2023-11-20 20:23:27 -0600
commit298e99d3776580585c3f434e5d93137ae431bdd3 (patch)
treea808c4ffd0fd0f9bd28972bae5236e0d3345c8e5 /scripts/CeladonDiner_2.asm
parentAdd sound bits documentation for wOptions (#110) (diff)
parentName 2 unnamed labels I missed in SeafoamIslandsB4F and PokemonMansion3F (#437) (diff)
downloadpokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.tar.gz
pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.tar.xz
pokeyellow-298e99d3776580585c3f434e5d93137ae431bdd3.zip
Merge branch 'master' of https://github.com/pret/pokered
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