summaryrefslogtreecommitdiff
path: root/scripts/silphco11.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-08-05 16:20:29 -0500
committerdannye <corrnondacqb@yahoo.com>2015-08-05 16:25:58 -0500
commitf8a9c37a0019eb085c22c6e3ae53b16ff0cd4f6a (patch)
tree53ef4ec4b7ab591f1ba98322405c6b1e645a21e2 /scripts/silphco11.asm
parent891627d4ba193dd839e03e9e30f1e492e57eac9f (diff)
Use more lb
and other clean up
Diffstat (limited to 'scripts/silphco11.asm')
-rwxr-xr-xscripts/silphco11.asm11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/silphco11.asm b/scripts/silphco11.asm
index 9cdf2891..4c83c20d 100755
--- a/scripts/silphco11.asm
+++ b/scripts/silphco11.asm
@@ -13,18 +13,19 @@ SilphCo11Script_62110: ; 62110 (18:6110)
bit 5, [hl]
res 5, [hl]
ret z
- ld hl, DataTable_62134
+ ld hl, SilphCo11GateCoords
call SilphCo11Script_62137
call SilphCo11Script_62163
CheckEvent EVENT_SILPH_CO_11_UNLOCKED_DOOR
ret nz
ld a, $20
ld [wNewTileBlockID], a
- ld bc, $603
+ lb bc, 6, 3
predef_jump ReplaceTileBlock
-DataTable_62134: ; 62134 (18:6134)
- db $06,$03,$FF
+SilphCo11GateCoords: ; 62134 (18:6134)
+ db $06,$03
+ db $FF
SilphCo11Script_62137: ; 62137 (18:6137)
push hl
@@ -306,7 +307,7 @@ SilphCo11Text1: ; 622dc (18:62dc)
jp nz, .asm_62308
ld hl, SilphCoPresidentText
call PrintText
- ld bc, (MASTER_BALL << 8) | 1
+ lb bc, MASTER_BALL, 1
call GiveItem
jr nc, .BagFull
ld hl, ReceivedSilphCoMasterBallText