summaryrefslogtreecommitdiff
path: root/scripts/pallettown.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/pallettown.asm')
-rwxr-xr-xscripts/pallettown.asm16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/pallettown.asm b/scripts/pallettown.asm
index 16098dcf..59660a90 100755
--- a/scripts/pallettown.asm
+++ b/scripts/pallettown.asm
@@ -68,7 +68,7 @@ PalletTownScript2: ; 18ed2 (6:4ed2)
ld [$FF8C],a
ld a,4
ld [$FF8D],a
- call Func_34a6
+ call SetSpriteFacingDirectionAndDelay
call Delay3
ld a,1
ld [W_YCOORD],a
@@ -77,11 +77,11 @@ PalletTownScript2: ; 18ed2 (6:4ed2)
ld a,1
swap a
ld [$FF95],a
- predef Func_f929
+ predef CalcPositionOfPlayerRelativeToNPC
ld hl,$FF95
dec [hl]
- predef Func_f8ba ; load Oak’s movement into wcc97
- ld de,wcc97
+ predef FindPathToPlayer ; load Oak’s movement into wNPCMovementDirections2
+ ld de,wNPCMovementDirections2
ld a,1 ; oak
ld [$FF8C],a
call MoveSprite
@@ -111,11 +111,11 @@ PalletTownScript3: ; 18f12 (6:4f12)
ld a,1
ld [wcf13],a
xor a
- ld [wcf10],a
+ ld [wNPCMovementScriptFunctionNum],a
ld a,1
- ld [wcc57],a
+ ld [wNPCMovementScriptPointerTableNum],a
ld a,[H_LOADEDROMBANK]
- ld [wcc58],a
+ ld [wNPCMovementScriptBank],a
; trigger the next script
ld a,4
@@ -123,7 +123,7 @@ PalletTownScript3: ; 18f12 (6:4f12)
ret
PalletTownScript4: ; 18f4b (6:4f4b)
- ld a,[wcc57]
+ ld a,[wNPCMovementScriptPointerTableNum]
and a
ret nz