Skip to content

Commit

Permalink
map → map_id; map_def → map; map_data → map_attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Feb 3, 2018
1 parent bf138d9 commit 6ff2cb2
Show file tree
Hide file tree
Showing 27 changed files with 1,439 additions and 1,440 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ home.o \
main.o \
wram.o \
data/text/common.o \
data/maps/maps.o \
data/maps/map_data.o \
data/pokemon/dex_entries.o \
data/pokemon/egg_moves.o \
data/pokemon/evos_attacks.o \
Expand Down
21 changes: 10 additions & 11 deletions constants/map_data_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,17 @@ GROUP_NONE EQU 0
MAP_NONE EQU 0


; map_def struct members (see data/maps/definitions.asm)
; map struct members (see data/maps/maps.asm)
const_def
const MAPDEF_MAPDATA_BANK ; 0
const MAPDEF_TILESET ; 1
const MAPDEF_ENVIRONMENT ; 2
const MAPDEF_MAPDATA ; 3
const MAPDEF_MAPDATA_HI ; 4
const MAPDEF_LOCATION ; 5
const MAPDEF_MUSIC ; 6
const MAPDEF_PALETTE ; 7
const MAPDEF_FISHGROUP ; 8
NUM_MAPDEF_ATTRIBUTES EQU const_value
const MAP_MAPATTRIBUTES_BANK ; 0
const MAP_TILESET ; 1
const MAP_ENVIRONMENT ; 2
const MAP_MAPATTRIBUTES ; 3
const MAP_MAPATTRIBUTES_HI ; 4
const MAP_LOCATION ; 5
const MAP_MUSIC ; 6
const MAP_PALETTE ; 7
const MAP_FISHGROUP ; 8

; map environments (wEnvironment)
const_def 1
Expand Down
4 changes: 2 additions & 2 deletions constants/map_setup_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
const map_load_spawn ; 17
const map_load_connection ; 18
const map_load_warp ; 19
const map_attributes ; 1a
const map_attributes_2 ; 1b
const map_load_attributes ; 1a
const map_load_attributes_2 ; 1b
const map_clear_bg_palettes ; 1c
const map_fade_out_palettes ; 1d
const map_fade_in_palettes ; 1e
Expand Down
Loading

0 comments on commit 6ff2cb2

Please sign in to comment.