summaryrefslogtreecommitdiff
path: root/include/constants
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-10-06 22:58:25 -0400
committerGriffinR <griffin.richards@comcast.net>2019-10-08 20:25:46 -0400
commitd1bcd60b58dafea5b8e48cc615460a8039ae6c4b (patch)
tree66b9cb74cc6c9747ff9e9cd49a3faf866a11384c /include/constants
parent66a68159b17f3c4c5f62219fc4bd0ec636d772b5 (diff)
Document more trade.c
Diffstat (limited to 'include/constants')
-rw-r--r--include/constants/trade.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/constants/trade.h b/include/constants/trade.h
index bd66a16aa..f03ced677 100644
--- a/include/constants/trade.h
+++ b/include/constants/trade.h
@@ -4,6 +4,7 @@
#define TRADE_PLAYER 0
#define TRADE_PARTNER 1
+// In-game Trade IDs
#define INGAME_TRADE_SEEDOT 0
#define INGAME_TRADE_PLUSLE 1
#define INGAME_TRADE_HORSEA 2
@@ -13,6 +14,21 @@
#define PLAYER_MON_VALID 1
#define PARTNER_MON_INVALID 2
+// Flag IDs for sending link data
+#define CHOSE_VALID_MON 1
+#define CHOSE_INVALID_MON 2
+#define WANTS_TO_TRADE 1
+#define WANTS_TO_CANCEL 2
+
+// Return values for CanTradeSelectedMon
+#define CAN_TRADE_MON 0
+#define CANT_TRADE_LAST_MON 1
+#define CANT_TRADE_NATIONAL 2
+#define CANT_TRADE_EGG 3
+#define CANT_TRADE_INVALID_MON 4
+#define CANT_TRADE_EGG2 5
+
+// Indexes for sTradeActionTexts
#define TRADE_ACTION_TEXT_CANCEL 0
#define TRADE_ACTION_TEXT_CHOOSE_MON 1
#define TRADE_ACTION_TEXT_SUMMARY 2
@@ -34,6 +50,21 @@
#define TRADE_MSG_EGG_CANT_BE_TRADED 7
#define TRADE_MSG_FRIENDS_MON_CANT_BE_TRADED 8
+// Queue actions
+#define QUEUE_SEND_DATA 0
+#define QUEUE_STANDBY 1
+#define QUEUE_ONLY_MON1 2
+#define QUEUE_ONLY_MON2 3
+#define QUEUE_UNUSED1 4
+#define QUEUE_UNUSED2 5
+#define QUEUE_MON_CANT_BE_TRADED 6
+#define QUEUE_EGG_CANT_BE_TRADED 7
+#define QUEUE_FRIENDS_MON_CANT_BE_TRADED 8
+
+// Queue delays
+#define QUEUE_DELAY_MSG 3
+#define QUEUE_DELAY_DATA 5
+
// Message indexes for sUnionRoomTradeMessages
#define UR_TRADE_MSG_NONE 0
#define UR_TRADE_MSG_NOT_MON_PARTNER_WANTS 1