mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 06:58:24 +00:00
Minor clarifications in Pallet Town scripts.
hg-commit-id: f42fc4aeadc6
This commit is contained in:
parent
1f5696ddda
commit
ef6eb622c4
2 changed files with 9 additions and 4 deletions
|
@ -82,8 +82,13 @@ W_ISLINKBATTLE EQU $D12B
|
|||
|
||||
W_CURMAP EQU $D35E
|
||||
|
||||
W_YCOORD EQU $D361 ; player’s position on the current map
|
||||
W_XCOORD EQU $D362
|
||||
|
||||
W_RIVALSTARTER EQU $D715
|
||||
|
||||
W_PLAYERSTARTER EQU $D717
|
||||
|
||||
W_GRASSRATE EQU $D887
|
||||
W_GRASSMONS EQU $D888
|
||||
W_WATERRATE EQU $D8A4 ; OVERLOADED
|
||||
|
|
|
@ -3811,8 +3811,8 @@ PalletTownScript1:
|
|||
ld a,[$D747]
|
||||
bit 0,a
|
||||
ret nz
|
||||
ld a,[$D361]
|
||||
cp 1
|
||||
ld a,[W_YCOORD]
|
||||
cp 1 ; is player near north exit?
|
||||
ret nz
|
||||
xor a
|
||||
ld [$FFB4],a
|
||||
|
@ -3860,7 +3860,7 @@ PalletTownScript3:
|
|||
call $34A6
|
||||
call Delay3
|
||||
ld a,1
|
||||
ld [$D361],a
|
||||
ld [W_YCOORD],a
|
||||
ld a,1
|
||||
ld [$FF9B],a
|
||||
ld a,1
|
||||
|
@ -3871,7 +3871,7 @@ PalletTownScript3:
|
|||
ld hl,$FF95
|
||||
dec [hl]
|
||||
ld a,$20
|
||||
call Predef
|
||||
call Predef ; load Oak’s movement into $CC97
|
||||
ld de,$CC97
|
||||
ld a,1
|
||||
ld [$FF8C],a
|
||||
|
|
Loading…
Reference in a new issue