diff options
| author | Rangi42 <remy.oukaour+rangi42@gmail.com> | 2023-11-20 18:53:23 -0500 |
|---|---|---|
| committer | Rangi42 <remy.oukaour+rangi42@gmail.com> | 2023-11-20 18:53:23 -0500 |
| commit | 77887be2512b4b8af688dc4552bdb4490d35e65b (patch) | |
| tree | 126dbe7e52876690b9970869c554de83ec093e9c /scripts/SilphCo7F.asm | |
| parent | Add `bigdw` and `dc` data macros (diff) | |
| download | pokeyellow-77887be2512b4b8af688dc4552bdb4490d35e65b.tar.gz pokeyellow-77887be2512b4b8af688dc4552bdb4490d35e65b.tar.xz pokeyellow-77887be2512b4b8af688dc4552bdb4490d35e65b.zip | |
Identify `wSavedCoordIndex` and its other usages
Diffstat (limited to 'scripts/SilphCo7F.asm')
| -rw-r--r-- | scripts/SilphCo7F.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/SilphCo7F.asm b/scripts/SilphCo7F.asm index c6afd27a..bfa78847 100644 --- a/scripts/SilphCo7F.asm +++ b/scripts/SilphCo7F.asm @@ -145,8 +145,8 @@ SilphCo7FDefaultScript: call SetSpriteMovementBytesToFF ld de, .RivalMovementUp ld a, [wCoordIndex] - ld [wcf0d], a - cp $1 + ld [wSavedCoordIndex], a + cp 1 ; index of second, lower entry in .RivalEncounterCoordinates jr z, .full_rival_movement inc de .full_rival_movement @@ -225,8 +225,8 @@ SilphCo7FRivalAfterBattleScript: call PlaySound farcall Music_RivalAlternateStart ld de, .RivalWalkAroundPlayerMovement - ld a, [wcf0d] - cp $1 + ld a, [wSavedCoordIndex] + cp 1 ; index of second, lower entry in SilphCo7FDefaultScript.RivalEncounterCoordinates jr nz, .walk_around_player ld de, .RivalExitRightMovement .walk_around_player |
