From d44b2a972d2b9fd1da64dacc4fd2b2224fb294a4 Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Tue, 31 Oct 2023 04:36:46 -0300 Subject: [PATCH] =?UTF-8?q?Renamed=20SendMonToPC=20to=20CopyMonToPC=20inst?= =?UTF-8?q?ead=20"SendMonToPC"=20implies=20that=20the=20Pok=C3=A9mon=20aff?= =?UTF-8?q?ected=20is=20actually=20sent=20over=20to=20the=20PC,=20but=20in?= =?UTF-8?q?=20reality=20the=20function=20simply=20copies=20the=20data=20of?= =?UTF-8?q?=20the=20Pok=C3=A9mon=20and=20then=20pastes=20it=20in=20the=20f?= =?UTF-8?q?irst=20available=20slot=20of=20the=20Pok=C3=A9mon=20Storage=20S?= =?UTF-8?q?ystem.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pokemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pokemon.c b/src/pokemon.c index 3925d77fe3a9..d3a570e72fcc 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -70,7 +70,7 @@ static void Task_PlayMapChosenOrBattleBGM(u8 taskId); static bool8 ShouldGetStatBadgeBoost(u16 flagId, u8 battlerId); static u16 GiveMoveToBoxMon(struct BoxPokemon *boxMon, u16 move); static bool8 ShouldSkipFriendshipChange(void); -static u8 SendMonToPC(struct Pokemon *mon); +static u8 CopyMonToPC(struct Pokemon *mon); EWRAM_DATA static u8 sLearningMoveTableID = 0; EWRAM_DATA u8 gPlayerPartyCount = 0; @@ -4405,14 +4405,14 @@ u8 GiveMonToPlayer(struct Pokemon *mon) } if (i >= PARTY_SIZE) - return SendMonToPC(mon); + return CopyMonToPC(mon); CopyMon(&gPlayerParty[i], mon, sizeof(*mon)); gPlayerPartyCount = i + 1; return MON_GIVEN_TO_PARTY; } -static u8 SendMonToPC(struct Pokemon *mon) +static u8 CopyMonToPC(struct Pokemon *mon) { s32 boxNo, boxPos;