diff options
author | Daniel Harding <33dannye@gmail.com> | 2020-05-20 20:17:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 20:17:30 -0500 |
commit | 500d99c258145d233af8d14cdb5c6e0200dfc1d8 (patch) | |
tree | 7dbe7b152dde8a6e9b56664b5b8cdfc0d6be1253 /scripts/CeladonDiner2.asm | |
parent | b8954732a3eaa3a784a6e3eaaa68977a9ccd9816 (diff) | |
parent | 33456b8fb28ef547a54d04d22baa2313b72fdb1d (diff) |
Merge pull request #50 from dannye/master
merge pokered
Diffstat (limited to 'scripts/CeladonDiner2.asm')
-rwxr-xr-x | scripts/CeladonDiner2.asm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/CeladonDiner2.asm b/scripts/CeladonDiner2.asm new file mode 100755 index 00000000..8cd66a19 --- /dev/null +++ b/scripts/CeladonDiner2.asm @@ -0,0 +1,38 @@ +Func_f1f31: + 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 + ret + +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 "@" |