2017-09-27 23:43:45 +02:00
|
|
|
#ifndef GUARD_MAIL_H
|
|
|
|
#define GUARD_MAIL_H
|
|
|
|
|
|
|
|
#define IS_ITEM_MAIL(itemId)((itemId == ITEM_ORANGE_MAIL \
|
|
|
|
|| itemId == ITEM_HARBOR_MAIL \
|
|
|
|
|| itemId == ITEM_GLITTER_MAIL \
|
|
|
|
|| itemId == ITEM_MECH_MAIL \
|
|
|
|
|| itemId == ITEM_WOOD_MAIL \
|
|
|
|
|| itemId == ITEM_WAVE_MAIL \
|
|
|
|
|| itemId == ITEM_BEAD_MAIL \
|
|
|
|
|| itemId == ITEM_SHADOW_MAIL \
|
|
|
|
|| itemId == ITEM_TROPIC_MAIL \
|
|
|
|
|| itemId == ITEM_DREAM_MAIL \
|
|
|
|
|| itemId == ITEM_FAB_MAIL \
|
|
|
|
|| itemId == ITEM_RETRO_MAIL))
|
|
|
|
|
2017-12-03 19:19:11 +01:00
|
|
|
// mail.h
|
2022-07-25 20:59:14 +02:00
|
|
|
void ReadMail(struct Mail *mail, void (*exitCallback)(void), bool8 hasText);
|
2017-11-14 20:23:25 +01:00
|
|
|
|
2017-12-03 19:19:11 +01:00
|
|
|
// mail_data.h
|
2021-10-23 16:55:46 +02:00
|
|
|
void ClearAllMail(void);
|
|
|
|
void ClearMail(struct Mail *mail);
|
2017-11-14 20:23:25 +01:00
|
|
|
bool8 MonHasMail(struct Pokemon *mon);
|
2021-10-23 16:55:46 +02:00
|
|
|
u8 GiveMailToMonByItemId(struct Pokemon *mon, u16 itemId);
|
2023-01-07 15:39:56 +01:00
|
|
|
u16 SpeciesToMailSpecies(u16 species, u32 personality);
|
|
|
|
u16 MailSpeciesToSpecies(u16 mailSpecies, u16 *buffer);
|
2021-10-23 16:55:46 +02:00
|
|
|
u8 GiveMailToMon(struct Pokemon *mon, struct Mail *mail);
|
2017-12-03 19:19:11 +01:00
|
|
|
void TakeMailFromMon(struct Pokemon *mon);
|
|
|
|
void ClearMailItemId(u8 mailId);
|
2021-11-15 16:57:06 +01:00
|
|
|
u8 TakeMailFromMonAndSave(struct Pokemon *mon);
|
2017-12-03 19:19:11 +01:00
|
|
|
bool8 ItemIsMail(u16 itemId);
|
2017-11-14 20:23:25 +01:00
|
|
|
|
2017-09-27 23:43:45 +02:00
|
|
|
#endif // GUARD_MAIL_H
|