summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorGriffinR <griffin.richards@comcast.net>2019-10-10 18:46:42 -0400
committerGriffinR <griffin.richards@comcast.net>2019-10-10 18:46:42 -0400
commit3514f9dd6b48f1a0c42a4ea6cb1ab5317fa88c50 (patch)
tree16dd056bfe77dc6087135fee2ebd9c974c5352ce /src/data
parent07fa82c911c5a22f0671a4ea798056b8de3c0a80 (diff)
Clean up trade.c doc
Diffstat (limited to 'src/data')
-rw-r--r--src/data/trade.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/data/trade.h b/src/data/trade.h
index 7d3f7ba3a..9e96a54dd 100644
--- a/src/data/trade.h
+++ b/src/data/trade.h
@@ -1,19 +1,21 @@
-static const u32 sUnref_0832C6A8[] =
+// Exists unused in RS as well
+static const u32 sUnusedStructSizes[] =
{
- 0x00000F2C,
- 0x00003D88,
- 0x0000001C,
- 0x00000024,
- 0x00000064,
- 0x00000528
+ sizeof(struct SaveBlock2),
+ sizeof(struct SaveBlock1),
+ sizeof(struct MapHeader),
+ // 0x00000530, in RS
+ sizeof(struct MailStruct), //or EventObject / EventObjectGraphicsInfo
+ sizeof(struct Pokemon), //or TrainerCard
+ 0x00000528 // 0x000004D8, in RS
};
static const u16 sTradeMovesBoxTilemap[] = INCBIN_U16("graphics/trade/moves_box_map.bin");
static const u16 sTradePartyBoxTilemap[] = INCBIN_U16("graphics/trade/party_box_map.bin");
static const u8 sTradeStripesBG2Tilemap[] = INCBIN_U8("graphics/trade/stripes_bg2_map.bin");
static const u8 sTradeStripesBG3Tilemap[] = INCBIN_U8("graphics/trade/stripes_bg3_map.bin");
-static const u8 sText_EmptyString7[] = _("");
-static const u8 sText_ClrWhtHltTrspntShdwDrkGry[] = _("{COLOR WHITE}{HIGHLIGHT TRANSPARENT}{SHADOW DARK_GREY}");
+static const u8 sText_EmptyString[] = _("");
+static const u8 sText_UnusedTextFormat[] = _("{COLOR WHITE}{HIGHLIGHT TRANSPARENT}{SHADOW DARK_GREY}");
const u8 gText_MaleSymbol4[] = _("♂");
const u8 gText_FemaleSymbol4[] = _("♀");
const u8 gText_GenderlessSymbol[] = _("");
@@ -168,9 +170,9 @@ static const struct SpritePalette gSpritePalette_TradeScreenText =
// 2 3 8 9
// 4 5 10 11
// 12
-// 1st array is current position ids
+// 1st array is the current positions
// 2nd array is directions of input
-// 3rd array is the next position ids to go to, stopping at the first occupied position
+// 3rd array is the next positions to go to (unoccupied spaces are skipped over)
static const u8 sTradeNextSelectedMonTable[(PARTY_SIZE * 2) + 1][4][PARTY_SIZE] =
{
{
@@ -253,7 +255,7 @@ static const u8 sTradeNextSelectedMonTable[(PARTY_SIZE * 2) + 1][4][PARTY_SIZE]
}
};
-static const u8 gTradeMonSpriteCoords[(PARTY_SIZE * 2) + 1][2] =
+static const u8 sTradeMonSpriteCoords[(PARTY_SIZE * 2) + 1][2] =
{
// Your party
{1, 5 },