fix brendan/may/wally consistency issues
This commit is contained in:
parent
52fa5137c9
commit
2779421ad4
6 changed files with 28 additions and 28 deletions
|
@ -176,13 +176,13 @@
|
|||
#define FACILITY_CLASS_SWIMMER_F 0x38
|
||||
#define FACILITY_CLASS_TWINS 0x39
|
||||
#define FACILITY_CLASS_SAILOR 0x3a
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_WALLY 0x3b
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_BRENDAN 0x3c
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_BRENDAN_2 0x3d
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_BRENDAN_3 0x3e
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_MAY 0x3f
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_MAY_2 0x40
|
||||
#define FACILITY_CLASS_PKMN_TRAINER_MAY_3 0x41
|
||||
#define FACILITY_CLASS_WALLY 0x3b
|
||||
#define FACILITY_CLASS_BRENDAN 0x3c
|
||||
#define FACILITY_CLASS_BRENDAN_2 0x3d
|
||||
#define FACILITY_CLASS_BRENDAN_3 0x3e
|
||||
#define FACILITY_CLASS_MAY 0x3f
|
||||
#define FACILITY_CLASS_MAY_2 0x40
|
||||
#define FACILITY_CLASS_MAY_3 0x41
|
||||
#define FACILITY_CLASS_PKMN_BREEDER_M 0x42
|
||||
#define FACILITY_CLASS_BUG_CATCHER 0x43
|
||||
#define FACILITY_CLASS_PKMN_RANGER_M 0x44
|
||||
|
|
|
@ -4791,7 +4791,7 @@ static void DisplayTrainerInfoOnCard(u8 flags, u8 trainerTournamentId)
|
|||
|
||||
i = 0;
|
||||
if (trainerId == TRAINER_PLAYER)
|
||||
j = gFacilityClassToTrainerClass[FACILITY_CLASS_PKMN_TRAINER_BRENDAN];
|
||||
j = gFacilityClassToTrainerClass[FACILITY_CLASS_BRENDAN];
|
||||
else if (trainerId == TRAINER_FRONTIER_BRAIN)
|
||||
j = GetDomeBrainTrainerClass();
|
||||
else
|
||||
|
|
|
@ -62,13 +62,13 @@ const u8 gFacilityClassToPicIndex[] =
|
|||
[FACILITY_CLASS_SWIMMER_F] = TRAINER_PIC_SWIMMER_F,
|
||||
[FACILITY_CLASS_TWINS] = TRAINER_PIC_TWINS,
|
||||
[FACILITY_CLASS_SAILOR] = TRAINER_PIC_SAILOR,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_WALLY] = TRAINER_PIC_WALLY,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_BRENDAN] = TRAINER_PIC_BRENDAN,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_BRENDAN_2] = TRAINER_PIC_BRENDAN,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_BRENDAN_3] = TRAINER_PIC_BRENDAN,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_MAY] = TRAINER_PIC_MAY,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_MAY_2] = TRAINER_PIC_MAY,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_MAY_3] = TRAINER_PIC_MAY,
|
||||
[FACILITY_CLASS_WALLY] = TRAINER_PIC_WALLY,
|
||||
[FACILITY_CLASS_BRENDAN] = TRAINER_PIC_BRENDAN,
|
||||
[FACILITY_CLASS_BRENDAN_2] = TRAINER_PIC_BRENDAN,
|
||||
[FACILITY_CLASS_BRENDAN_3] = TRAINER_PIC_BRENDAN,
|
||||
[FACILITY_CLASS_MAY] = TRAINER_PIC_MAY,
|
||||
[FACILITY_CLASS_MAY_2] = TRAINER_PIC_MAY,
|
||||
[FACILITY_CLASS_MAY_3] = TRAINER_PIC_MAY,
|
||||
[FACILITY_CLASS_PKMN_BREEDER_M] = TRAINER_PIC_POKEMON_BREEDER_M,
|
||||
[FACILITY_CLASS_BUG_CATCHER] = TRAINER_PIC_BUG_CATCHER,
|
||||
[FACILITY_CLASS_PKMN_RANGER_M] = TRAINER_PIC_POKEMON_RANGER_M,
|
||||
|
@ -148,13 +148,13 @@ const u8 gFacilityClassToTrainerClass[] =
|
|||
[FACILITY_CLASS_SWIMMER_F] = TRAINER_CLASS_SWIMMER_F,
|
||||
[FACILITY_CLASS_TWINS] = TRAINER_CLASS_TWINS,
|
||||
[FACILITY_CLASS_SAILOR] = TRAINER_CLASS_SAILOR,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_WALLY] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_MAY] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_BRENDAN_2] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_BRENDAN_3] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_BRENDAN] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_MAY_2] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_TRAINER_MAY_3] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_WALLY] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_MAY] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_BRENDAN_2] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_BRENDAN_3] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_BRENDAN] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_MAY_2] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_MAY_3] = TRAINER_CLASS_PKMN_TRAINER_3,
|
||||
[FACILITY_CLASS_PKMN_BREEDER_M] = TRAINER_CLASS_PKMN_BREEDER,
|
||||
[FACILITY_CLASS_BUG_CATCHER] = TRAINER_CLASS_BUG_CATCHER,
|
||||
[FACILITY_CLASS_PKMN_RANGER_M] = TRAINER_CLASS_PKMN_RANGER,
|
||||
|
|
|
@ -1772,12 +1772,12 @@ static void AddBirchSpeechObjects(u8 taskId)
|
|||
gSprites[lotadSpriteId].oam.priority = 0;
|
||||
gSprites[lotadSpriteId].invisible = TRUE;
|
||||
gTasks[taskId].tLotadSpriteId = lotadSpriteId;
|
||||
brendanSpriteId = CreateTrainerSprite(FacilityClassToPicIndex(FACILITY_CLASS_PKMN_TRAINER_BRENDAN), 120, 60, 0, &gDecompressionBuffer[0]);
|
||||
brendanSpriteId = CreateTrainerSprite(FacilityClassToPicIndex(FACILITY_CLASS_BRENDAN), 120, 60, 0, &gDecompressionBuffer[0]);
|
||||
gSprites[brendanSpriteId].callback = nullsub_11;
|
||||
gSprites[brendanSpriteId].invisible = TRUE;
|
||||
gSprites[brendanSpriteId].oam.priority = 0;
|
||||
gTasks[taskId].tBrendanSpriteId = brendanSpriteId;
|
||||
maySpriteId = CreateTrainerSprite(FacilityClassToPicIndex(FACILITY_CLASS_PKMN_TRAINER_MAY), 120, 60, 0, &gDecompressionBuffer[0x800]);
|
||||
maySpriteId = CreateTrainerSprite(FacilityClassToPicIndex(FACILITY_CLASS_MAY), 120, 60, 0, &gDecompressionBuffer[0x800]);
|
||||
gSprites[maySpriteId].callback = nullsub_11;
|
||||
gSprites[maySpriteId].invisible = TRUE;
|
||||
gSprites[maySpriteId].oam.priority = 0;
|
||||
|
|
|
@ -7113,9 +7113,9 @@ u16 FacilityClassToPicIndex(u16 facilityClass)
|
|||
u16 PlayerGenderToFrontTrainerPicId(u8 playerGender)
|
||||
{
|
||||
if (playerGender != MALE)
|
||||
return FacilityClassToPicIndex(FACILITY_CLASS_PKMN_TRAINER_MAY);
|
||||
return FacilityClassToPicIndex(FACILITY_CLASS_MAY);
|
||||
else
|
||||
return FacilityClassToPicIndex(FACILITY_CLASS_PKMN_TRAINER_BRENDAN);
|
||||
return FacilityClassToPicIndex(FACILITY_CLASS_BRENDAN);
|
||||
}
|
||||
|
||||
void HandleSetPokedexFlag(u16 nationalNum, u8 caseId, u32 personality)
|
||||
|
|
|
@ -404,9 +404,9 @@ u16 PlayerGenderToFrontTrainerPicId_Debug(u8 gender, bool8 getClass)
|
|||
switch (gender)
|
||||
{
|
||||
default:
|
||||
return gFacilityClassToPicIndex[FACILITY_CLASS_PKMN_TRAINER_MAY];
|
||||
return gFacilityClassToPicIndex[FACILITY_CLASS_MAY];
|
||||
case MALE:
|
||||
return gFacilityClassToPicIndex[FACILITY_CLASS_PKMN_TRAINER_BRENDAN];
|
||||
return gFacilityClassToPicIndex[FACILITY_CLASS_BRENDAN];
|
||||
}
|
||||
}
|
||||
return gender;
|
||||
|
|
Loading…
Reference in a new issue