Macro update, roam mon annotations

Updated map and mapgroup macros to get around an rgbds bug.

Legendary beast locale handling annotated and relabeled.

Added a new constant NUM_ENGINE_FLAGS for use in the EngineFlagAction function.  This will make it easier for modders to add or remove engine flags.
This commit is contained in:
PikalaxALT
2015-07-25 14:25:37 -04:00
parent 432df825d4
commit 6c3000efd2
26 changed files with 760 additions and 729 deletions

View File

@@ -31,6 +31,6 @@ const_value = const_value + 1
ENDM
shift_const: MACRO
\1 EQU 1 << const_value
\1 EQU (1 << const_value)
const_value = const_value + 1
ENDM

View File

@@ -5,8 +5,8 @@ map: MACRO
; db GROUP_\1, MAP_\1
\1\@ EQUS "GROUP_\1"
\1\@2 EQUS "MAP_\1"
db \1\@, \1\@2
\1\@_2 EQUS "MAP_\1"
db \1\@, \1\@_2
ENDM
roam_map: MACRO
@@ -165,9 +165,9 @@ ENDM
mapgroup: MACRO
; map id, height, width
\1\@ EQUS "GROUP_\1"
\1\@2 EQUS "MAP_\1"
\1\@_2 EQUS "MAP_\1"
\1\@ EQU const_value
enum \1\@2
enum \1\@_2
\1_HEIGHT EQU \2
\1_WIDTH EQU \3
ENDM

View File

@@ -12,7 +12,7 @@ page EQUS "db $50," ; Start a new Pokedex page.
dex EQUS "db $e8, $50" ; End a Pokedex entry.
TX_RAM EQU 1
TX_RAM EQU $01
TX_FAR EQU $16
text_jump: MACRO