Organize debug-only structures for test maps and levels (#16)

This commit is contained in:
xCrystal
2023-09-03 00:22:23 +02:00
parent eb728d5151
commit 674e838460
19 changed files with 276 additions and 91 deletions

View File

@@ -62,6 +62,9 @@
const ENGINE_UNLOCKED_UNOWNS_UNUSED_7
; wVisitedSpawns
const ENGINE_FLYPOINT_LEVEL_1
if DEF(_DEBUG)
const ENGINE_FLYPOINT_DEBUGLEVEL_1
endc
const ENGINE_FLYPOINT_UNUSED
; wLuckyNumberShowFlag
const ENGINE_LUCKY_NUMBER_SHOW

View File

@@ -1,10 +1,13 @@
; Landmarks indexes (see data/maps/landmarks.asm)
const_def
const LANDMARK_LEVEL_1 ; 00
const LANDMARK_LEVEL_2 ; 01
const LANDMARK_LEVEL_3 ; 02
const LANDMARK_LEVEL_4 ; 03
const LANDMARK_LEVEL_5 ; 04
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
endc
DEF NUM_LANDMARKS EQU const_value
; used in CaughtData

View File

@@ -44,4 +44,10 @@ ENDM
; map_const LEVEL_2_MAP_1, 4, 4 ; 1
; endgroup
if DEF(_DEBUG)
newgroup DEBUGLEVEL_1
map_const DEBUGLEVEL_1_MAP_1, 5, 4 ; 1
endgroup
endc
DEF NUM_MAP_GROUPS EQU const_value

View File

@@ -79,8 +79,10 @@ DEF NUM_FISHGROUPS EQU const_value - 1
const_def
const SPAWN_LEVEL_1
; const SPAWN_LEVEL_2
if DEF(_DEBUG)
const SPAWN_DEBUGLEVEL_1
endc
DEF NUM_SPAWNS EQU const_value
DEF SPAWN_N_A EQU -1
; Flypoints indexes (see data/maps/flypoints.asm)