From ece7ef3410eb9b114cf328426c4fc16c972f71c6 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sun, 17 Oct 2021 03:00:48 -0400 Subject: Correct usage of MysteryEvent to MysteryGift --- include/constants/mevent.h | 47 ---------------------------------------- include/constants/mystery_gift.h | 47 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 47 deletions(-) delete mode 100644 include/constants/mevent.h create mode 100644 include/constants/mystery_gift.h (limited to 'include/constants') diff --git a/include/constants/mevent.h b/include/constants/mevent.h deleted file mode 100644 index 636043fdb..000000000 --- a/include/constants/mevent.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef GUARD_CONSTANTS_MEVENT_H -#define GUARD_CONSTANTS_MEVENT_H - -#define GET_NUM_STAMPS 0 -#define GET_MAX_STAMPS 1 -#define GET_CARD_BATTLES_WON 2 -#define GET_CARD_BATTLE_LOST 3 -#define GET_CARD_NUM_TRADES 4 - -#define CARD_STAT_BATTLES_WON 0 -#define CARD_STAT_BATTLES_LOST 1 -#define CARD_STAT_NUM_TRADES 2 -#define CARD_STAT_NUM_STAMPS 3 -#define CARD_STAT_MAX_STAMPS 4 - -// Values for the type field of Wonder Card -#define CARD_TYPE_GIFT 0 // Normal "Wonder Card" -#define CARD_TYPE_STAMP 1 // "Stamp Card" -#define CARD_TYPE_LINK_STAT 2 // Referred to as the "Battle Card", shows battle and trade stats -#define CARD_TYPE_COUNT 3 - -// Values for the sendType field of Wonder Card/News -#define SEND_TYPE_DISALLOWED 0 -#define SEND_TYPE_ALLOWED 1 -#define SEND_TYPE_ALLOWED_ALWAYS 2 - -// Return values for MysteryGift_CompareCardFlags, handled by gMysteryGiftServerScript_SendWonderCard -#define HAS_NO_CARD 0 -#define HAS_SAME_CARD 1 -#define HAS_DIFF_CARD 2 - -// The number of battles needed to be recorded on a Battle Card to win a prize -#define REQUIRED_CARD_BATTLES 3 - -// Stamps are 32 bits. The first 16 bits are the species -// and the second 16 bits are a number (presumably an ID of some kind) -#define STAMP_SPECIES 0 -#define STAMP_ID 1 - -// Number of different types/colors of Wonder Card and News backgrounds -#define NUM_WONDER_BGS 8 - -#define MAX_WONDER_CARD_STAT 999 - -#define WONDER_CARD_FLAG_OFFSET 1000 - -#endif //GUARD_MEVENT_H diff --git a/include/constants/mystery_gift.h b/include/constants/mystery_gift.h new file mode 100644 index 000000000..07690e37c --- /dev/null +++ b/include/constants/mystery_gift.h @@ -0,0 +1,47 @@ +#ifndef GUARD_CONSTANTS_MYSTERY_GIFT_H +#define GUARD_CONSTANTS_MYSTERY_GIFT_H + +#define GET_NUM_STAMPS 0 +#define GET_MAX_STAMPS 1 +#define GET_CARD_BATTLES_WON 2 +#define GET_CARD_BATTLE_LOST 3 +#define GET_CARD_NUM_TRADES 4 + +#define CARD_STAT_BATTLES_WON 0 +#define CARD_STAT_BATTLES_LOST 1 +#define CARD_STAT_NUM_TRADES 2 +#define CARD_STAT_NUM_STAMPS 3 +#define CARD_STAT_MAX_STAMPS 4 + +// Values for the type field of Wonder Card +#define CARD_TYPE_GIFT 0 // Normal "Wonder Card" +#define CARD_TYPE_STAMP 1 // "Stamp Card" +#define CARD_TYPE_LINK_STAT 2 // Referred to as the "Battle Card", shows battle and trade stats +#define CARD_TYPE_COUNT 3 + +// Values for the sendType field of Wonder Card/News +#define SEND_TYPE_DISALLOWED 0 +#define SEND_TYPE_ALLOWED 1 +#define SEND_TYPE_ALLOWED_ALWAYS 2 + +// Return values for MysteryGift_CompareCardFlags, handled by gMysteryGiftServerScript_SendWonderCard +#define HAS_NO_CARD 0 +#define HAS_SAME_CARD 1 +#define HAS_DIFF_CARD 2 + +// The number of battles needed to be recorded on a Battle Card to win a prize +#define REQUIRED_CARD_BATTLES 3 + +// Stamps are 32 bits. The first 16 bits are the species +// and the second 16 bits are a number (presumably an ID of some kind) +#define STAMP_SPECIES 0 +#define STAMP_ID 1 + +// Number of different types/colors of Wonder Card and News backgrounds +#define NUM_WONDER_BGS 8 + +#define MAX_WONDER_CARD_STAT 999 + +#define WONDER_CARD_FLAG_OFFSET 1000 + +#endif //GUARD_CONSTANTS_MYSTERY_GIFT_H -- cgit v1.2.3