summaryrefslogtreecommitdiff
path: root/sram.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-27 13:22:27 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-27 23:09:06 -0400
commit446f1846b1c614ab1538d1ce11aa2781c22717f2 (patch)
tree86577424070c79a01431300c391c2ebd29afe487 /sram.asm
parent2738858985dbcff55c2ec237ac6075b4263f3120 (diff)
Identify remaining Mystery Gift labels and constants
Source: https://projectpokemon.org/home/forums/topic/43930-mystery-gift-reverse-engineering-of-ir-protocol/
Diffstat (limited to 'sram.asm')
-rw-r--r--sram.asm7
1 files changed, 4 insertions, 3 deletions
diff --git a/sram.asm b/sram.asm
index c1508cc05..d20429736 100644
--- a/sram.asm
+++ b/sram.asm
@@ -47,19 +47,20 @@ sMailbox8Backup:: mailmsg sMailbox8Backup
sMailbox9Backup:: mailmsg sMailbox9Backup
sMailbox10Backup:: mailmsg sMailbox10Backup
+sMysteryGiftData::
sMysteryGiftItem:: db
sMysteryGiftUnlocked:: db
sBackupMysteryGiftItem:: db
sNumDailyMysteryGiftPartnerIDs:: db
-sDailyMysteryGiftPartnerIDs:: ds 5 * 2 ; maximum 5 per day, 2 bytes per ID
+sDailyMysteryGiftPartnerIDs:: ds MAX_MYSTERY_GIFT_PARTNERS * 2
sMysteryGiftDecorationsReceived:: flag_array NUM_NON_TROPHY_DECOS
ds 4
sMysteryGiftTimer:: dw
ds 1
sMysteryGiftTrainerHouseFlag:: db
sMysteryGiftPartnerName:: ds NAME_LENGTH
- ds 1
-sMysteryGiftTrainer:: ds (1 + 1 + NUM_MOVES) * PARTY_LENGTH + 2
+sMysteryGiftUnusedFlag:: db
+sMysteryGiftTrainer:: ds wMysteryGiftTrainerEnd - wMysteryGiftTrainer
sBackupMysteryGiftItemEnd::
ds $30