From 36bea47ea6d2a76a0add9eaf7f5f817eea9c49e5 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Fri, 1 Nov 2019 15:59:24 -0400 Subject: Static symbols in easy_chat --- include/constants/easy_chat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/constants/easy_chat.h') diff --git a/include/constants/easy_chat.h b/include/constants/easy_chat.h index 5d6536490..11a8a1ba7 100644 --- a/include/constants/easy_chat.h +++ b/include/constants/easy_chat.h @@ -23,6 +23,7 @@ #define EC_GROUP_MOVE_2 0x13 #define EC_GROUP_TRENDY_SAYING 0x14 #define EC_GROUP_POKEMON 0x15 +#define EC_NUM_GROUPS 0x16 // TRAINER #define EC_WORD_I_CHOOSE_YOU (EC_GROUP_TRAINER << 9) | 0x0 @@ -1073,5 +1074,6 @@ #define EC_GROUP(word) ((word) >> 9) #define EC_INDEX(word) ((word) & 0x1FF) +#define EC_WORD(groupId, index) ((((groupId) & 0x7F) << 9) | ((index) & 0x1FF)) #endif // GUARD_CONSTANTS_EASY_CHAT_H -- cgit v1.2.3