You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use compound assignment operators
This commit is contained in:
@@ -70,7 +70,7 @@ __deco_value__ = 0
|
||||
deco: MACRO
|
||||
const DECO_\1
|
||||
DECOFLAG_\1 EQU __deco_value__
|
||||
__deco_value__ = __deco_value__ + 1
|
||||
__deco_value__ += 1
|
||||
ENDM
|
||||
|
||||
; decorations:
|
||||
|
@@ -202,7 +202,7 @@ __tmhm_value__ = 1
|
||||
|
||||
add_tmnum: MACRO
|
||||
\1_TMNUM EQU __tmhm_value__
|
||||
__tmhm_value__ = __tmhm_value__ + 1
|
||||
__tmhm_value__ += 1
|
||||
ENDM
|
||||
|
||||
add_tm: MACRO
|
||||
|
@@ -12,7 +12,7 @@ map_const: MACRO
|
||||
;\3: height: in blocks
|
||||
GROUP_\1 EQU const_value
|
||||
MAP_\1 EQU __map_value__
|
||||
__map_value__ = __map_value__ + 1
|
||||
__map_value__ += 1
|
||||
\1_WIDTH EQU \2
|
||||
\1_HEIGHT EQU \3
|
||||
ENDM
|
||||
|
@@ -2,7 +2,7 @@ __trainer_class__ = 0
|
||||
|
||||
trainerclass: MACRO
|
||||
\1 EQU __trainer_class__
|
||||
__trainer_class__ = __trainer_class__ + 1
|
||||
__trainer_class__ += 1
|
||||
const_def 1
|
||||
ENDM
|
||||
|
||||
|
Reference in New Issue
Block a user