summaryrefslogtreecommitdiff
path: root/src/battle_controller_link_opponent.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-02-05 17:39:26 +0100
committerDizzyEggg <jajkodizzy@wp.pl>2018-02-05 17:39:26 +0100
commitae8e89a10ddfb736afc23a2477c20b6897b0313d (patch)
tree03ead636462c868b93cad1046867ac338f9788b0 /src/battle_controller_link_opponent.c
parenteb6aed50e56f36ce416f7ecc8edfacea1da61bf1 (diff)
move some pokemon data to c
Diffstat (limited to 'src/battle_controller_link_opponent.c')
-rw-r--r--src/battle_controller_link_opponent.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/battle_controller_link_opponent.c b/src/battle_controller_link_opponent.c
index cb510bb5b..d4cdb7968 100644
--- a/src/battle_controller_link_opponent.c
+++ b/src/battle_controller_link_opponent.c
@@ -58,7 +58,7 @@ extern u16 gTrainerBattleOpponent_B;
extern const struct CompressedSpritePalette gTrainerFrontPicPaletteTable[];
extern const struct BattleMove gBattleMoves[];
-extern const u8 gUnknown_0831F578[];
+extern const u8 gFacilityClassToPicIndex[];
extern void sub_8172EF0(u8 bank, struct Pokemon *mon);
extern void sub_806A068(u16, u8);
@@ -1280,17 +1280,17 @@ static void LinkOpponentHandleDrawTrainerPic(void)
|| (gLinkPlayers[GetBankMultiplayerId(gActiveBank)].version & 0xFF) == VERSION_LEAF_GREEN)
{
if (gLinkPlayers[GetBankMultiplayerId(gActiveBank)].gender != 0)
- trainerPicId = gUnknown_0831F578[0x4F];
+ trainerPicId = gFacilityClassToPicIndex[0x4F];
else
- trainerPicId = gUnknown_0831F578[0x4E];
+ trainerPicId = gFacilityClassToPicIndex[0x4E];
}
else if ((gLinkPlayers[GetBankMultiplayerId(gActiveBank)].version & 0xFF) == VERSION_RUBY
|| (gLinkPlayers[GetBankMultiplayerId(gActiveBank)].version & 0xFF) == VERSION_SAPPHIRE)
{
if (gLinkPlayers[GetBankMultiplayerId(gActiveBank)].gender != 0)
- trainerPicId = gUnknown_0831F578[0x51];
+ trainerPicId = gFacilityClassToPicIndex[0x51];
else
- trainerPicId = gUnknown_0831F578[0x50];
+ trainerPicId = gFacilityClassToPicIndex[0x50];
}
else
{
@@ -1309,17 +1309,17 @@ static void LinkOpponentHandleDrawTrainerPic(void)
|| (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_LEAF_GREEN)
{
if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != 0)
- trainerPicId = gUnknown_0831F578[0x4F];
+ trainerPicId = gFacilityClassToPicIndex[0x4F];
else
- trainerPicId = gUnknown_0831F578[0x4E];
+ trainerPicId = gFacilityClassToPicIndex[0x4E];
}
else if ((gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_RUBY
|| (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].version & 0xFF) == VERSION_SAPPHIRE)
{
if (gLinkPlayers[GetMultiplayerId() ^ BIT_SIDE].gender != 0)
- trainerPicId = gUnknown_0831F578[0x51];
+ trainerPicId = gFacilityClassToPicIndex[0x51];
else
- trainerPicId = gUnknown_0831F578[0x50];
+ trainerPicId = gFacilityClassToPicIndex[0x50];
}
else
{