Eliminate enum: use const instead, with case-by-case parallel const implementations

This commit is contained in:
Rangi
2020-07-08 15:30:23 -04:00
parent 9e4a00af45
commit 6ca82e5c86
24 changed files with 543 additions and 560 deletions

View File

@@ -1,10 +1,10 @@
command: MACRO
enum \1_command
const \1_command
\1 EQUS "db \1_command"
ENDM
; BattleCommandPointers indexes (see data/battle/effect_command_pointers.asm)
enum_start 1
const_def 1
command checkturn ; 01
command checkobedience ; 02
command usedmovetext ; 03
@@ -181,6 +181,6 @@ ENDM
command startloop ; ae
command curl ; af
enum_start $fe
const_def $fe
command endturn ; fe
command endmove ; ff