mirror of
https://github.com/pret/pokeyellow.git
synced 2026-03-21 17:34:31 -05:00
39 lines
735 B
NASM
39 lines
735 B
NASM
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
|