Clean up pokemon/ball/dex mentions in comments
This commit is contained in:
30
src/trade.c
30
src/trade.c
@@ -168,7 +168,7 @@ static EWRAM_DATA u8 *sMenuTextTileBuffer = NULL;
|
||||
// Bytes 0-2 are used for the player's name text
|
||||
// Bytes 3-5 are used for the partner's name text
|
||||
// Bytes 6-7 are used for the Cancel text
|
||||
// Bytes 8-13 are used for the Choose a Pokemon text
|
||||
// Bytes 8-13 are used for the Choose a Pokémon text
|
||||
// See the corresponding GFXTAGs in src/data/trade.h
|
||||
static EWRAM_DATA u8 *sMenuTextTileBuffers[NUM_MENU_TEXT_SPRITES] = {NULL};
|
||||
|
||||
@@ -1010,25 +1010,25 @@ static void SetActiveMenuOptions(void)
|
||||
{
|
||||
if (i < sTradeMenu->partyCounts[TRADE_PLAYER])
|
||||
{
|
||||
// Present player pokemon
|
||||
// Present player Pokémon
|
||||
gSprites[sTradeMenu->partySpriteIds[TRADE_PLAYER][i]].invisible = FALSE;
|
||||
sTradeMenu->optionsActive[i] = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Absent player pokemon
|
||||
// Absent player Pokémon
|
||||
sTradeMenu->optionsActive[i] = FALSE;
|
||||
}
|
||||
|
||||
if (i < sTradeMenu->partyCounts[TRADE_PARTNER])
|
||||
{
|
||||
// Present partner pokemon
|
||||
// Present partner Pokémon
|
||||
gSprites[sTradeMenu->partySpriteIds[TRADE_PARTNER][i]].invisible = FALSE;
|
||||
sTradeMenu->optionsActive[i + PARTY_SIZE] = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Absent partner pokemon
|
||||
// Absent partner Pokémon
|
||||
sTradeMenu->optionsActive[i + PARTY_SIZE] = FALSE;
|
||||
}
|
||||
}
|
||||
@@ -1285,7 +1285,7 @@ static void Leader_HandleCommunication(void)
|
||||
if (sTradeMenu->playerSelectStatus == STATUS_READY
|
||||
&& sTradeMenu->partnerSelectStatus == STATUS_READY)
|
||||
{
|
||||
// Both players have selected a pokemon to trade
|
||||
// Both players have selected a Pokémon to trade
|
||||
sTradeMenu->callbackId = CB_SET_SELECTED_MONS;
|
||||
sTradeMenu->linkData[0] = LINKCMD_SET_MONS_TO_TRADE;
|
||||
sTradeMenu->linkData[1] = sTradeMenu->cursorPosition;
|
||||
@@ -1295,7 +1295,7 @@ static void Leader_HandleCommunication(void)
|
||||
else if (sTradeMenu->playerSelectStatus == STATUS_READY
|
||||
&& sTradeMenu->partnerSelectStatus == STATUS_CANCEL)
|
||||
{
|
||||
// The player has selected a pokemon to trade,
|
||||
// The player has selected a Pokémon to trade,
|
||||
// but the partner has selected Cancel
|
||||
PrintTradeMessage(MSG_CANCELED);
|
||||
sTradeMenu->linkData[0] = LINKCMD_PARTNER_CANCEL_TRADE;
|
||||
@@ -1308,7 +1308,7 @@ static void Leader_HandleCommunication(void)
|
||||
else if (sTradeMenu->playerSelectStatus == STATUS_CANCEL
|
||||
&& sTradeMenu->partnerSelectStatus == STATUS_READY)
|
||||
{
|
||||
// The partner has selected a pokemon to trade,
|
||||
// The partner has selected a Pokémon to trade,
|
||||
// but the player has selected cancel
|
||||
PrintTradeMessage(MSG_FRIEND_WANTS_TO_TRADE);
|
||||
sTradeMenu->linkData[0] = LINKCMD_PLAYER_CANCEL_TRADE;
|
||||
@@ -1465,7 +1465,7 @@ static void CB_ProcessMenuInput(void)
|
||||
|
||||
if (sTradeMenu->cursorPosition < PARTY_SIZE)
|
||||
{
|
||||
// Selected pokemon in player's party
|
||||
// Selected Pokémon in player's party
|
||||
DrawTextBorderOuter(1, 1, 14);
|
||||
FillWindowPixelBuffer(1, PIXEL_FILL(1));
|
||||
PrintMenuTable(1, ARRAY_COUNT(sSelectTradeMonActions), sSelectTradeMonActions);
|
||||
@@ -1476,7 +1476,7 @@ static void CB_ProcessMenuInput(void)
|
||||
}
|
||||
else if (sTradeMenu->cursorPosition < PARTY_SIZE * 2)
|
||||
{
|
||||
// Selected pokemon in partner's party
|
||||
// Selected Pokémon in partner's party
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 16, RGB_BLACK);
|
||||
sTradeMenu->callbackId = CB_SHOW_MON_SUMMARY;
|
||||
}
|
||||
@@ -1855,7 +1855,7 @@ static void SetSelectedMon(u8 cursorPosition)
|
||||
if (sTradeMenu->drawSelectedMonState[whichParty] == 0)
|
||||
{
|
||||
// Start the animation to display just the selected
|
||||
// pokemon in the middle of the screen
|
||||
// Pokémon in the middle of the screen
|
||||
sTradeMenu->drawSelectedMonState[whichParty] = 1;
|
||||
sTradeMenu->selectedMonIdx[whichParty] = cursorPosition;
|
||||
}
|
||||
@@ -1889,10 +1889,10 @@ static void DrawSelectedMonScreen(u8 whichParty)
|
||||
for (i = 0; i < PARTY_SIZE; i++)
|
||||
ClearWindowTilemap(i + (whichParty * PARTY_SIZE + 2));
|
||||
|
||||
// Re-display the selected pokemon
|
||||
// Re-display the selected Pokémon
|
||||
gSprites[sTradeMenu->partySpriteIds[selectedMonParty][partyIdx]].invisible = FALSE;
|
||||
|
||||
// Move the selected pokemon to the center
|
||||
// Move the selected Pokémon to the center
|
||||
gSprites[sTradeMenu->partySpriteIds[selectedMonParty][partyIdx]].data[0] = 20;
|
||||
gSprites[sTradeMenu->partySpriteIds[selectedMonParty][partyIdx]].data[2] = (sTradeMonSpriteCoords[selectedMonParty * PARTY_SIZE][0]
|
||||
+ sTradeMonSpriteCoords[selectedMonParty * PARTY_SIZE + 1][0]) / 2 * 8 + 14;
|
||||
@@ -3109,13 +3109,13 @@ static void TradeMons(u8 playerPartyIdx, u8 partnerPartyIdx)
|
||||
struct Pokemon *partnerMon = &gEnemyParty[partnerPartyIdx];
|
||||
u16 partnerMail = GetMonData(partnerMon, MON_DATA_MAIL);
|
||||
|
||||
// The mail attached to the sent Pokemon no longer exists in your file.
|
||||
// The mail attached to the sent Pokémon no longer exists in your file.
|
||||
if (playerMail != MAIL_NONE)
|
||||
ClearMail(&gSaveBlock1Ptr->mail[playerMail]);
|
||||
|
||||
SWAP(*playerMon, *partnerMon, sTradeAnim->tempMon);
|
||||
|
||||
// By default, a Pokemon received from a trade will have 70 Friendship.
|
||||
// By default, a Pokémon received from a trade will have 70 Friendship.
|
||||
// Eggs use Friendship to track egg cycles, so don't set this on Eggs.
|
||||
friendship = 70;
|
||||
if (!GetMonData(playerMon, MON_DATA_IS_EGG))
|
||||
|
||||
Reference in New Issue
Block a user