Add support for a level having more than one associated landmark, for levels with alternative starting points (#12)

This commit is contained in:
xCrystal
2024-01-18 14:06:10 +01:00
parent 0abe559e11
commit 8757112152
6 changed files with 44 additions and 10 deletions

View File

@@ -1,21 +1,21 @@
; Landmarks indexes (see data/maps/landmarks.asm)
; Landmarks indexes (see data/level_selection_menu.asm)
const_def
const LANDMARK_LEVEL_1 ; 00
if DEF(_DEBUG)
const LANDMARK_DEBUGLEVEL_1 ; 00
const LANDMARK_DEBUGLEVEL_2 ; 01
const LANDMARK_DEBUGLEVEL_3 ; 02
const LANDMARK_DEBUGLEVEL_4 ; 03
const LANDMARK_DEBUGLEVEL_5 ; 04
const LANDMARK_DEBUGLEVEL_1 ; 01
const LANDMARK_DEBUGLEVEL_2 ; 02
const LANDMARK_DEBUGLEVEL_3 ; 03
const LANDMARK_DEBUGLEVEL_4 ; 04
const LANDMARK_DEBUGLEVEL_5 ; 05
endc
DEF NUM_LANDMARKS EQU const_value
; used in CaughtData
; used in CaughtData (legacy)
const_def $7f, -1
const LANDMARK_EVENT ; $7f
const LANDMARK_GIFT ; $7e
; Regions
; Regions (legacy)
const_def
const JOHTO_REGION ; 0
const KANTO_REGION ; 1

11
constants/level_constants.asm Executable file
View File

@@ -0,0 +1,11 @@
; Level indexes (see data/level_selection_menu.asm)
const_def
const LEVEL_1 ; 00
if DEF(_DEBUG)
const DEBUGLEVEL_1 ; 01
const DEBUGLEVEL_2 ; 02
const DEBUGLEVEL_3 ; 03
const DEBUGLEVEL_4 ; 04
const DEBUGLEVEL_5 ; 05
endc
DEF NUM_LEVELS EQU const_value