summaryrefslogtreecommitdiff
path: root/scripts/SilphCo11F.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/SilphCo11F.asm')
-rwxr-xr-xscripts/SilphCo11F.asm32
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/SilphCo11F.asm b/scripts/SilphCo11F.asm
index abea6da4..f3a7088b 100755
--- a/scripts/SilphCo11F.asm
+++ b/scripts/SilphCo11F.asm
@@ -24,8 +24,8 @@ SilphCo11Script_62110:
predef_jump ReplaceTileBlock
SilphCo11GateCoords:
- db $06,$03
- db $FF
+ dbmapcoord 3, 6
+ db -1 ; end
SilphCo11Script_62137:
push hl
@@ -85,7 +85,7 @@ SilphCo11Script_6216d:
ld hl, MissableObjectIDs_62194
.asm_62184
ld a, [hli]
- cp $ff
+ cp -1
ret z
push hl
ld [wMissableObjectIndex], a
@@ -100,7 +100,7 @@ MissableObjectIDs_62194:
db HS_SAFFRON_CITY_B
db HS_SAFFRON_CITY_C
db HS_SAFFRON_CITY_D
- db $FF
+ db -1 ; end
MissableObjectIDs_6219b:
db HS_SAFFRON_CITY_1
@@ -143,7 +143,7 @@ MissableObjectIDs_6219b:
db HS_SILPH_CO_11F_1
db HS_SILPH_CO_11F_2
db HS_SILPH_CO_11F_3
- db $FF
+ db -1 ; end
SilphCo11Script_621c4:
xor a
@@ -186,15 +186,15 @@ SilphCo11Script0:
jp SilphCo11Script_621c8
CoordsData_62211:
- db $0D,$06
- db $0C,$07
- db $FF
+ dbmapcoord 6, 13
+ dbmapcoord 7, 12
+ db -1 ; end
MovementData_62216:
db NPC_MOVEMENT_DOWN
db NPC_MOVEMENT_DOWN
db NPC_MOVEMENT_DOWN
- db $FF
+ db -1 ; end
SilphCo11Script_6221a:
ld [wPlayerMovingDirection], a
@@ -289,24 +289,24 @@ SilphCo11TrainerHeader1:
SilphCo11Text1:
text_asm
CheckEvent EVENT_GOT_MASTER_BALL
- jp nz, .asm_62308
+ jp nz, .got_item
ld hl, SilphCoPresidentText
call PrintText
lb bc, MASTER_BALL, 1
call GiveItem
- jr nc, .BagFull
+ jr nc, .bag_full
ld hl, ReceivedSilphCoMasterBallText
call PrintText
SetEvent EVENT_GOT_MASTER_BALL
- jr .asm_6230e
-.BagFull
+ jr .done
+.bag_full
ld hl, SilphCoMasterBallNoRoomText
call PrintText
- jr .asm_6230e
-.asm_62308
+ jr .done
+.got_item
ld hl, SilphCo10Text_6231c
call PrintText
-.asm_6230e
+.done
jp TextScriptEnd
SilphCoPresidentText: