mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-15 08:41:01 -05:00
28 lines
698 B
C
28 lines
698 B
C
#include "global.h"
|
|
#include "constants/trainers.h"
|
|
|
|
static enum TrainerPicID GetHoennTrainerPic(enum Gender gender)
|
|
{
|
|
return gender == MALE ? TRAINER_PIC_RS_BRENDAN : TRAINER_PIC_RS_MAY;
|
|
}
|
|
|
|
static enum TrainerPicID GetKantoTrainerPic(enum Gender gender)
|
|
{
|
|
return gender == MALE ? TRAINER_PIC_RED : TRAINER_PIC_LEAF;
|
|
}
|
|
|
|
enum TrainerPicID GetPlayerTrainerPic(enum Gender gender, u8 version)
|
|
{
|
|
switch (version)
|
|
{
|
|
case VERSION_SAPPHIRE:
|
|
case VERSION_RUBY:
|
|
case VERSION_EMERALD:
|
|
return GetHoennTrainerPic(gender);
|
|
case VERSION_LEAF_GREEN:
|
|
case VERSION_FIRE_RED:
|
|
default:
|
|
return GetKantoTrainerPic(gender);
|
|
}
|
|
}
|