You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Reorganize macros
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
; BattleCommandPointers indexes (see battle/effect_commands.asm)
|
||||
|
||||
command: macro
|
||||
enum \1_command
|
||||
\1 equs "db \1_command"
|
||||
endm
|
||||
|
||||
; BattleCommandPointers indexes (see battle/effect_commands.asm)
|
||||
enum_start 1
|
||||
command checkturn ; 01
|
||||
command checkobedience ; 02
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
newgroup: macro
|
||||
const_value = const_value + 1
|
||||
enum_start 1
|
||||
endm
|
||||
|
||||
mapgroup: macro
|
||||
;\1: map id
|
||||
;\2: height: in blocks
|
||||
;\3: width: in blocks
|
||||
GROUP_\1 EQU const_value
|
||||
enum MAP_\1
|
||||
\1_HEIGHT EQU \2
|
||||
\1_WIDTH EQU \3
|
||||
endm
|
||||
|
||||
; map group ids
|
||||
; `newgroup` indexes are for:
|
||||
; - MapGroupPointers (see maps/map_headers.asm)
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
trainerclass: MACRO
|
||||
enum \1
|
||||
const_value = 1
|
||||
ENDM
|
||||
|
||||
; trainer class ids
|
||||
; `trainerclass` indexes are for:
|
||||
; - TrainerClassAttributes (see trainers/attributes.asm)
|
||||
|
||||
Reference in New Issue
Block a user