summaryrefslogtreecommitdiff
path: root/include/battle_message.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/battle_message.h')
-rw-r--r--include/battle_message.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/battle_message.h b/include/battle_message.h
index 3e28fa5e5..6e6616cf0 100644
--- a/include/battle_message.h
+++ b/include/battle_message.h
@@ -82,6 +82,14 @@
textVar[3] = B_BUFF_EOS; \
}
+#define PREPARE_ABILITY_BUFFER(textVar, abilityId) \
+{ \
+ textVar[0] = B_BUFF_PLACEHOLDER_BEGIN; \
+ textVar[1] = B_BUFF_ABILITY; \
+ textVar[2] = abilityId; \
+ textVar[3] = B_BUFF_EOS; \
+}
+
#define PREPARE_TYPE_BUFFER(textVar, typeId) \
{ \
textVar[0] = B_BUFF_PLACEHOLDER_BEGIN; \
@@ -142,6 +150,15 @@
textVar[4] = B_BUFF_EOS; \
}
+#define PREPARE_ITEM_BUFFER(textVar, item) \
+{ \
+ textVar[0] = B_BUFF_PLACEHOLDER_BEGIN; \
+ textVar[1] = B_BUFF_ITEM; \
+ textVar[2] = item; \
+ textVar[3] = (item & 0xFF00) >> 8; \
+ textVar[4] = B_BUFF_EOS; \
+}
+
#define PREPARE_SPECIES_BUFFER(textVar, species) \
{ \
textVar[0] = B_BUFF_PLACEHOLDER_BEGIN; \