Merge branch 'master' of https://github.com/pret/pokeemerald into sync-trade

This commit is contained in:
GriffinR
2023-01-23 14:45:51 -05:00
280 changed files with 7680 additions and 11029 deletions
+2 -2
View File
@@ -2438,7 +2438,7 @@ void RunUnionRoom(void)
uroom->unreadPlayerId = 0;
gSpecialVar_Result = 0;
ListMenuLoadStdPalAt(0xD0, 1);
ListMenuLoadStdPalAt(BG_PLTT_ID(13), 1);
}
static u16 ReadAsU16(const u8 *ptr)
@@ -4187,7 +4187,7 @@ static s32 IsRequestedTradeInPlayerParty(u32 type, u32 species)
for (i = 0; i < gPlayerPartyCount; i++)
{
species = GetMonData(&gPlayerParty[i], MON_DATA_SPECIES2);
if (gSpeciesInfo[species].type1 == type || gSpeciesInfo[species].type2 == type)
if (gSpeciesInfo[species].types[0] == type || gSpeciesInfo[species].types[1] == type)
return UR_TRADE_MATCH;
}
return UR_TRADE_NOTYPE;