mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Replace some hard-coded values with constants
This commit is contained in:
parent
725b86ebbe
commit
f99a715fae
18 changed files with 37 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -190,3 +190,5 @@ const_value = 1
|
|||
const BELLSPROUT ; $BC
|
||||
const WEEPINBELL ; $BD
|
||||
const VICTREEBEL ; $BE
|
||||
|
||||
NUM_POKEMON_INDEXES EQU const_value + -1
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue