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 /include | |
parent | 51247c3eb9dc1f8ecf4298ada62ed7c2f768b50e (diff) |
Name and use constants for special vars
Diffstat (limited to 'include')
-rw-r--r-- | include/constants/vars.h | 21 | ||||
-rw-r--r-- | include/player_pc.h | 4 |
2 files changed, 23 insertions, 2 deletions
diff --git a/include/constants/vars.h b/include/constants/vars.h index b0662954f..352034d7a 100644 --- a/include/constants/vars.h +++ b/include/constants/vars.h @@ -169,4 +169,25 @@ #define VAR_STEVENS_HOUSE_STATE 0x40C6 #define VAR_OLDALE_STATE 0x40C7 +// special vars +// They are commonly used as parameters to commands, or return values from commands. +#define SPECIALVAR_0 0x8000 +#define SPECIALVAR_1 0x8001 +#define SPECIALVAR_2 0x8002 +#define SPECIALVAR_3 0x8003 +#define SPECIALVAR_4 0x8004 +#define SPECIALVAR_5 0x8005 +#define SPECIALVAR_6 0x8006 +#define SPECIALVAR_7 0x8007 +#define SPECIALVAR_8 0x8008 +#define SPECIALVAR_9 0x8009 +#define SPECIALVAR_A 0x800A +#define SPECIALVAR_B 0x800B +#define FACING 0x800C +#define RESULT 0x800D +#define ITEM_ID 0x800E +#define LAST_TALKED 0x800F +#define CONTEST_RANK 0x8010 +#define CONTEST_CATEGORY 0x8011 + #endif // GUARD_CONSTANTS_VARS_H diff --git a/include/player_pc.h b/include/player_pc.h index 3302ec634..625155b57 100644 --- a/include/player_pc.h +++ b/include/player_pc.h @@ -19,8 +19,8 @@ // defined and used in the above macro enum { - ITEM_ID, - QUANTITY + PC_ITEM_ID, + PC_QUANTITY }; // player PC menu options |