Replace some hard-coded values with constants

This commit is contained in:
Rangi 2019-07-07 00:44:21 -04:00
parent 725b86ebbe
commit f99a715fae
18 changed files with 37 additions and 30 deletions

View file

@ -152,4 +152,4 @@ const_value = 1
const DEX_MEWTWO ; 150
const DEX_MEW ; 151
NUM_POKEMON EQU 151
NUM_POKEMON EQU const_value + -1

View file

@ -190,3 +190,5 @@ const_value = 1
const BELLSPROUT ; $BC
const WEEPINBELL ; $BD
const VICTREEBEL ; $BE
NUM_POKEMON_INDEXES EQU const_value + -1

View file

@ -1,6 +1,8 @@
OPP_ID_OFFSET EQU 200
trainer_const: MACRO
\1 EQU const_value
OPP_\1 EQU const_value + 200
OPP_\1 EQU const_value + OPP_ID_OFFSET
const_value = const_value + 1
ENDM