summaryrefslogtreecommitdiff
path: root/include/constants
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-02-25 14:12:18 -0600
committerGitHub <noreply@github.com>2019-02-25 14:12:18 -0600
commit153f13431879678899dd9c9236b193cf0b44c566 (patch)
treeaae8a179cdb7b4903e3c280eaf898de3615911fd /include/constants
parentd77ba3d41300d62756da0a9dba23b15263c99caf (diff)
parent7ea05431a58d63c2e0594d15e552979d20092cf6 (diff)
Merge pull request #583 from huderlem/easy_chat
Decompile more easy_chat.c
Diffstat (limited to 'include/constants')
-rw-r--r--include/constants/easy_chat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/constants/easy_chat.h b/include/constants/easy_chat.h
index 2c437c88e..1c8866bc3 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_2 0x15
+#define EC_NUM_GROUPS 0x16
// TRAINER
#define EC_WORD_I_CHOOSE_YOU (EC_GROUP_TRAINER << 9) | 0x0
@@ -1075,5 +1076,6 @@
#define EC_GROUP(word) ((word) >> 9)
#define EC_INDEX(word) ((word) & 0x1FF)
+#define EC_WORD(group, index) ((((group) & 0x7F) << 9) | ((index) & 0x1FF))
#endif // GUARD_CONSTANTS_EASY_CHAT_H