mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Get rid of LANDMARK_SPECIAL (#1)
This commit is contained in:
parent
473c23a727
commit
787caa2147
@ -1,7 +1,6 @@
|
|||||||
; Landmarks indexes (see data/maps/landmarks.asm)
|
; Landmarks indexes (see data/maps/landmarks.asm)
|
||||||
const_def
|
const_def
|
||||||
const LANDMARK_SPECIAL ; 00
|
const LANDMARK_LEVEL_1 ; 00
|
||||||
const LANDMARK_LEVEL_1 ; 01
|
|
||||||
DEF NUM_LANDMARKS EQU const_value
|
DEF NUM_LANDMARKS EQU const_value
|
||||||
|
|
||||||
; used in CaughtData
|
; used in CaughtData
|
||||||
|
@ -7,9 +7,7 @@ ENDM
|
|||||||
Landmarks:
|
Landmarks:
|
||||||
; entries correspond to constants/landmark_constants.asm
|
; entries correspond to constants/landmark_constants.asm
|
||||||
table_width 4, Landmarks
|
table_width 4, Landmarks
|
||||||
landmark -8, -16, SpecialLandmarkName
|
|
||||||
landmark 140, 100, Level1LandmarkName
|
landmark 140, 100, Level1LandmarkName
|
||||||
assert_table_length NUM_LANDMARKS
|
assert_table_length NUM_LANDMARKS
|
||||||
|
|
||||||
SpecialLandmarkName: db "SPECIAL@"
|
|
||||||
Level1LandmarkName: db "LEVEL 1@"
|
Level1LandmarkName: db "LEVEL 1@"
|
||||||
|
@ -60,16 +60,12 @@ InitMapNameSign::
|
|||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wPrevLandmark]
|
ld a, [wPrevLandmark]
|
||||||
cp c
|
cp c
|
||||||
ret z
|
|
||||||
cp LANDMARK_SPECIAL
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.CheckSpecialMap:
|
.CheckSpecialMap:
|
||||||
; These landmarks do not get pop-up signs.
|
; These landmarks do not get pop-up signs.
|
||||||
cp -1
|
cp -1
|
||||||
ret z
|
ret z
|
||||||
cp LANDMARK_SPECIAL ; redundant check
|
|
||||||
ret z
|
|
||||||
ld a, 1
|
ld a, 1
|
||||||
and a
|
and a
|
||||||
ret
|
ret
|
||||||
|
@ -167,17 +167,6 @@ Pokedex_GetLandmark:
|
|||||||
ld a, [wMapNumber]
|
ld a, [wMapNumber]
|
||||||
ld c, a
|
ld c, a
|
||||||
call GetWorldMapLocation
|
call GetWorldMapLocation
|
||||||
|
|
||||||
cp LANDMARK_SPECIAL
|
|
||||||
jr nz, .load
|
|
||||||
|
|
||||||
ld a, [wBackupMapGroup]
|
|
||||||
ld b, a
|
|
||||||
ld a, [wBackupMapNumber]
|
|
||||||
ld c, a
|
|
||||||
call GetWorldMapLocation
|
|
||||||
|
|
||||||
.load
|
|
||||||
ld [wDexCurLocation], a
|
ld [wDexCurLocation], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
@ -185,13 +185,6 @@ TownMap_GetCurrentLandmark:
|
|||||||
ld a, [wMapNumber]
|
ld a, [wMapNumber]
|
||||||
ld c, a
|
ld c, a
|
||||||
call GetWorldMapLocation
|
call GetWorldMapLocation
|
||||||
cp LANDMARK_SPECIAL
|
|
||||||
ret nz
|
|
||||||
ld a, [wBackupMapGroup]
|
|
||||||
ld b, a
|
|
||||||
ld a, [wBackupMapNumber]
|
|
||||||
ld c, a
|
|
||||||
call GetWorldMapLocation
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
TownMap_InitCursorAndPlayerIconPositions:
|
TownMap_InitCursorAndPlayerIconPositions:
|
||||||
@ -200,14 +193,6 @@ TownMap_InitCursorAndPlayerIconPositions:
|
|||||||
ld a, [wMapNumber]
|
ld a, [wMapNumber]
|
||||||
ld c, a
|
ld c, a
|
||||||
call GetWorldMapLocation
|
call GetWorldMapLocation
|
||||||
cp LANDMARK_SPECIAL
|
|
||||||
jr nz, .LoadLandmark
|
|
||||||
ld a, [wBackupMapGroup]
|
|
||||||
ld b, a
|
|
||||||
ld a, [wBackupMapNumber]
|
|
||||||
ld c, a
|
|
||||||
call GetWorldMapLocation
|
|
||||||
.LoadLandmark:
|
|
||||||
ld [wPokegearMapPlayerIconLandmark], a
|
ld [wPokegearMapPlayerIconLandmark], a
|
||||||
ld [wPokegearMapCursorLandmark], a
|
ld [wPokegearMapCursorLandmark], a
|
||||||
ret
|
ret
|
||||||
@ -2126,16 +2111,6 @@ FlyMap:
|
|||||||
ld a, [wMapNumber]
|
ld a, [wMapNumber]
|
||||||
ld c, a
|
ld c, a
|
||||||
call GetWorldMapLocation
|
call GetWorldMapLocation
|
||||||
; If we're not in a valid location, i.e. Pokecenter floor 2F,
|
|
||||||
; the backup map information is used.
|
|
||||||
cp LANDMARK_SPECIAL
|
|
||||||
jr nz, .CheckRegion
|
|
||||||
ld a, [wBackupMapGroup]
|
|
||||||
ld b, a
|
|
||||||
ld a, [wBackupMapNumber]
|
|
||||||
ld c, a
|
|
||||||
call GetWorldMapLocation
|
|
||||||
.CheckRegion:
|
|
||||||
; Johto fly map
|
; Johto fly map
|
||||||
push af
|
push af
|
||||||
ld a, FLY_1 ; first Johto flypoint
|
ld a, FLY_1 ; first Johto flypoint
|
||||||
|
Loading…
Reference in New Issue
Block a user