diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-12-24 10:11:43 -0600 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2017-12-24 10:14:54 -0600 |
commit | 1c8b05e7b059a98d4259f4129896d0cc1eaa3847 (patch) | |
tree | ba882643b40c20d5a15b2d330f091b1ef0e0c751 /asm/macros | |
parent | 51247c3eb9dc1f8ecf4298ada62ed7c2f768b50e (diff) |
Name and use constants for special vars
Diffstat (limited to 'asm/macros')
-rw-r--r-- | asm/macros/event.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/asm/macros/event.inc b/asm/macros/event.inc index 738c2418e..5727c7383 100644 --- a/asm/macros/event.inc +++ b/asm/macros/event.inc @@ -1366,11 +1366,11 @@ .endm .macro switch var - copyvar 0x8000, \var + copyvar SPECIALVAR_0, \var .endm .macro case condition, dest - compare_var_to_value 0x8000, \condition + compare_var_to_value SPECIALVAR_0, \condition goto_if_eq \dest .endm @@ -1386,12 +1386,12 @@ NO = 0 .macro giveitem_std item, amount=1, function=0 - setorcopyvar 0x8000, \item - setorcopyvar 0x8001, \amount + setorcopyvar SPECIALVAR_0, \item + setorcopyvar SPECIALVAR_1, \amount callstd \function .endm .macro givedecoration_std decoration - setorcopyvar 0x8000, \decoration + setorcopyvar SPECIALVAR_0, \decoration callstd 7 .endm |