Sync trainer_card.c
This commit is contained in:
@@ -1127,11 +1127,11 @@ static void LinkOpponentHandleDrawTrainerPic(void)
|
||||
}
|
||||
else if (gLinkPlayers[GetBattlerMultiplayerId(gActiveBattler)].gender != MALE)
|
||||
{
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_PLAYER_4];
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_LEAF];
|
||||
}
|
||||
else
|
||||
{
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_PLAYER_3];
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_RED];
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1152,11 +1152,11 @@ static void LinkOpponentHandleDrawTrainerPic(void)
|
||||
}
|
||||
else if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != MALE)
|
||||
{
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_PLAYER_4];
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_LEAF];
|
||||
}
|
||||
else
|
||||
{
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_PLAYER_3];
|
||||
trainerPicId = gFacilityClassToPicIndex[FACILITY_CLASS_RED];
|
||||
}
|
||||
}
|
||||
DecompressTrainerFrontPic(trainerPicId, gActiveBattler);
|
||||
|
||||
@@ -133,10 +133,10 @@ const u8 gFacilityClassToPicIndex[] =
|
||||
[FACILITY_CLASS_CRUSH_KIN] = 130,
|
||||
[FACILITY_CLASS_SIS_AND_BRO_2] = 131,
|
||||
[FACILITY_CLASS_PKMN_PROF] = 132,
|
||||
[FACILITY_CLASS_PLAYER] = 133,
|
||||
[FACILITY_CLASS_PLAYER_2] = 134,
|
||||
[FACILITY_CLASS_PLAYER_3] = 135,
|
||||
[FACILITY_CLASS_PLAYER_4] = 136,
|
||||
[FACILITY_CLASS_BRENDAN] = TRAINER_PIC_RS_BRENDAN_2,
|
||||
[FACILITY_CLASS_MAY] = TRAINER_PIC_RS_MAY_2,
|
||||
[FACILITY_CLASS_RED] = TRAINER_PIC_RED,
|
||||
[FACILITY_CLASS_LEAF] = TRAINER_PIC_LEAF,
|
||||
[FACILITY_CLASS_TEAM_ROCKET_2] = 137,
|
||||
[FACILITY_CLASS_PSYCHIC_4] = 138,
|
||||
[FACILITY_CLASS_CRUSH_GIRL] = 139,
|
||||
@@ -287,10 +287,10 @@ const u8 gFacilityClassToTrainerClass[] =
|
||||
[FACILITY_CLASS_CRUSH_KIN] = CLASS_CRUSH_KIN,
|
||||
[FACILITY_CLASS_SIS_AND_BRO_2] = CLASS_SIS_AND_BRO_2,
|
||||
[FACILITY_CLASS_PKMN_PROF] = CLASS_PKMN_PROF,
|
||||
[FACILITY_CLASS_PLAYER] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_PLAYER_2] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_PLAYER_3] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_PLAYER_4] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_BRENDAN] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_MAY] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_RED] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_LEAF] = CLASS_PLAYER,
|
||||
[FACILITY_CLASS_TEAM_ROCKET_2] = CLASS_TEAM_ROCKET,
|
||||
[FACILITY_CLASS_PSYCHIC_4] = CLASS_PSYCHIC_2,
|
||||
[FACILITY_CLASS_CRUSH_GIRL] = CLASS_CRUSH_GIRL,
|
||||
|
||||
+4
-4
@@ -1210,10 +1210,10 @@ const u32 gUnknown_8E990F8[] = INCBIN_U32("graphics/interface/naming_screen_8E99
|
||||
|
||||
const u8 gUnknown_8E99118[] = INCBIN_U8("graphics/tm_case/unk_8E99118.4bpp");
|
||||
|
||||
const u16 gFireRedTrainerCard_Pal[] = INCBIN_U16("graphics/trainer_card/0star.gbapal");
|
||||
const u32 gFireRedTrainerCard_Gfx[] = INCBIN_U32("graphics/trainer_card/card.4bpp.lz");
|
||||
const u16 gEmeraldTrainerCard_Pal[] = INCBIN_U16("graphics/trainer_card/0star_em.gbapal");
|
||||
const u32 gEmeraldTrainerCard_Gfx[] = INCBIN_U32("graphics/trainer_card/card_em.4bpp.lz");
|
||||
const u16 gKantoTrainerCard_Pal[] = INCBIN_U16("graphics/trainer_card/0star.gbapal");
|
||||
const u32 gKantoTrainerCard_Gfx[] = INCBIN_U32("graphics/trainer_card/card.4bpp.lz");
|
||||
const u16 gHoennTrainerCard_Pal[] = INCBIN_U16("graphics/trainer_card/0star_em.gbapal");
|
||||
const u32 gHoennTrainerCard_Gfx[] = INCBIN_U32("graphics/trainer_card/card_em.4bpp.lz");
|
||||
|
||||
const u16 gUnknown_8E99D8C[] = INCBIN_U16("graphics/link_rfu/unk_8E99DAC.gbapal");
|
||||
const u32 gUnknown_8E99DAC[] = INCBIN_U32("graphics/link_rfu/unk_8E99DAC.4bpp.lz");
|
||||
|
||||
+454
-407
File diff suppressed because it is too large
Load Diff
@@ -300,7 +300,7 @@ u16 sub_810C2FC(u16 species, bool8 isFrontPic, u8 paletteSlot, u8 windowId)
|
||||
return sub_810C050(species, 0, 0, isFrontPic, paletteSlot, windowId, TRUE);
|
||||
}
|
||||
|
||||
u16 sub_810C330(u16 species, bool8 isFrontPic, u16 destX, u16 destY, u8 paletteSlot, u8 windowId)
|
||||
u16 CreateTrainerCardTrainerPicSprite(u16 species, bool8 isFrontPic, u16 destX, u16 destY, u8 paletteSlot, u8 windowId)
|
||||
{
|
||||
return sub_810C0C0(species, 0, 0, isFrontPic, destX, destY, paletteSlot, windowId, TRUE);
|
||||
}
|
||||
|
||||
+3
-2
@@ -46,6 +46,7 @@
|
||||
#include "constants/cable_club.h"
|
||||
#include "constants/field_weather.h"
|
||||
#include "constants/species.h"
|
||||
#include "constants/trainer_card.h"
|
||||
#include "constants/union_room.h"
|
||||
|
||||
static EWRAM_DATA u8 sUnionRoomPlayerName[12] = {};
|
||||
@@ -4727,9 +4728,9 @@ static void ViewURoomPartnerTrainerCard(u8 *unused, struct UnkStruct_URoom * uro
|
||||
ConvertIntToDecimalStringN(uroom->trainerCardStrbufs[2], trainerCard->pokemonTrades, STR_CONV_MODE_LEFT_ALIGN, 5);
|
||||
DynamicPlaceholderTextUtil_SetPlaceholderPtr(3, uroom->trainerCardStrbufs[2]);
|
||||
|
||||
for (i = 0; i < 4; i++)
|
||||
for (i = 0; i < TRAINER_CARD_PROFILE_LENGTH; i++)
|
||||
{
|
||||
CopyEasyChatWord(uroom->trainerCardStrbufs[i + 3], trainerCard->var_28[i]);
|
||||
CopyEasyChatWord(uroom->trainerCardStrbufs[i + 3], trainerCard->easyChatProfile[i]);
|
||||
DynamicPlaceholderTextUtil_SetPlaceholderPtr(i + 4, uroom->trainerCardStrbufs[i + 3]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user