summaryrefslogtreecommitdiff
path: root/scripts/celadondiner.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2015-08-30 17:55:02 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2015-08-30 17:55:02 -0400
commitd2ed7674f499b1fd6c4059da40b8b42c6bf96995 (patch)
treef581489b522fc647477d7b36dee072d553c44fd1 /scripts/celadondiner.asm
parent3394d8320f35f524231aa13bd9cae34e22246a6d (diff)
parent1a987d1e1ab96ca9553d4253c72858057332a03a (diff)
Merge branch 'master' of https://github.com/iimarckus/pokered
Doesn't build.
Diffstat (limited to 'scripts/celadondiner.asm')
-rwxr-xr-xscripts/celadondiner.asm20
1 files changed, 9 insertions, 11 deletions
diff --git a/scripts/celadondiner.asm b/scripts/celadondiner.asm
index 5ae89022..be1ed4c8 100755
--- a/scripts/celadondiner.asm
+++ b/scripts/celadondiner.asm
@@ -26,28 +26,26 @@ CeladonDinerText4: ; 4916e (12:516e)
db "@"
CeladonDinerText5: ; 49173 (12:5173)
- db $08 ; asm
- ld a, [wd783]
- bit 0, a
- jr nz, .asm_eb14d ; 0x49179
+ TX_ASM
+ CheckEvent EVENT_GOT_COIN_CASE
+ jr nz, .asm_eb14d
ld hl, CeladonDinerText_491a7
call PrintText
- ld bc, (COIN_CASE << 8) | 1
+ lb bc, COIN_CASE, 1
call GiveItem
jr nc, .BagFull
- ld hl, wd783
- set 0, [hl]
+ SetEvent EVENT_GOT_COIN_CASE
ld hl, ReceivedCoinCaseText
call PrintText
- jr .asm_68b61 ; 0x49194
+ jr .asm_68b61
.BagFull
ld hl, CoinCaseNoRoomText
call PrintText
- jr .asm_68b61 ; 0x4919c
-.asm_eb14d ; 0x4919e
+ jr .asm_68b61
+.asm_eb14d
ld hl, CeladonDinerText_491b7
call PrintText
-.asm_68b61 ; 0x491a4
+.asm_68b61
jp TextScriptEnd
CeladonDinerText_491a7: ; 491a7 (12:51a7)