mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Front pic gender differences for Eevee
This commit is contained in:
parent
6cb73c1e8a
commit
4d4b111327
BIN
graphics/pokemon/eevee/anim_frontf.png
Normal file
BIN
graphics/pokemon/eevee/anim_frontf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 945 B |
@ -108,6 +108,8 @@ extern const u8 gEnemyMonElevation[NUM_SPECIES];
|
||||
|
||||
extern const union AnimCmd *const *const gMonFrontAnimsPtrTable[];
|
||||
extern const struct CompressedSpriteSheet gMonFrontPicTable[];
|
||||
extern const struct CompressedSpriteSheet gMonFrontPicTableFemale[];
|
||||
extern const bool8 SpeciesHasGenderDifference[NUM_SPECIES];
|
||||
|
||||
extern const struct Trainer gTrainers[];
|
||||
extern const u8 gTrainerClassNames[][13];
|
||||
|
@ -169,6 +169,7 @@ extern const u32 gMonFrontPic_Gyarados[];
|
||||
extern const u32 gMonFrontPic_Lapras[];
|
||||
extern const u32 gMonFrontPic_Ditto[];
|
||||
extern const u32 gMonFrontPic_Eevee[];
|
||||
extern const u32 gMonFrontPic_EeveeF[];
|
||||
extern const u32 gMonFrontPic_Vaporeon[];
|
||||
extern const u32 gMonFrontPic_Jolteon[];
|
||||
extern const u32 gMonFrontPic_Flareon[];
|
||||
|
@ -300,6 +300,11 @@ const union AnimCmd *const gUnknown_082FF70C[] =
|
||||
|
||||
#define TRAINER_BACK_PAL(trainerPic, pal) [TRAINER_BACK_PIC_##trainerPic] = {pal, TRAINER_BACK_PIC_##trainerPic}
|
||||
|
||||
const bool8 SpeciesHasGenderDifference[NUM_SPECIES] =
|
||||
{
|
||||
[SPECIES_EEVEE] = TRUE,
|
||||
};
|
||||
|
||||
#include "data/pokemon_graphics/front_pic_coordinates.h"
|
||||
#include "data/pokemon_graphics/back_pic_coordinates.h"
|
||||
|
||||
|
@ -132,6 +132,7 @@ const u32 gMonFrontPic_Gyarados[] = INCBIN_U32("graphics/pokemon/gyarados/anim_f
|
||||
const u32 gMonFrontPic_Lapras[] = INCBIN_U32("graphics/pokemon/lapras/anim_front.4bpp.lz");
|
||||
const u32 gMonFrontPic_Ditto[] = INCBIN_U32("graphics/pokemon/ditto/anim_front.4bpp.lz");
|
||||
const u32 gMonFrontPic_Eevee[] = INCBIN_U32("graphics/pokemon/eevee/anim_front.4bpp.lz");
|
||||
const u32 gMonFrontPic_EeveeF[] = INCBIN_U32("graphics/pokemon/eevee/anim_frontf.4bpp.lz");
|
||||
const u32 gMonFrontPic_Vaporeon[] = INCBIN_U32("graphics/pokemon/vaporeon/anim_front.4bpp.lz");
|
||||
const u32 gMonFrontPic_Jolteon[] = INCBIN_U32("graphics/pokemon/jolteon/anim_front.4bpp.lz");
|
||||
const u32 gMonFrontPic_Flareon[] = INCBIN_U32("graphics/pokemon/flareon/anim_front.4bpp.lz");
|
||||
|
@ -943,3 +943,8 @@ const struct CompressedSpriteSheet gMonFrontPicTable[] =
|
||||
SPECIES_SPRITE(UNOWN_EMARK, gMonFrontPic_UnownExclamationMark),
|
||||
SPECIES_SPRITE(UNOWN_QMARK, gMonFrontPic_UnownQuestionMark),
|
||||
};
|
||||
|
||||
const struct CompressedSpriteSheet gMonFrontPicTableFemale[] =
|
||||
{
|
||||
SPECIES_SPRITE(EEVEE, gMonFrontPic_EeveeF),
|
||||
};
|
@ -363,6 +363,8 @@ void LoadSpecialPokePic_DontHandleDeoxys(const struct CompressedSpriteSheet *src
|
||||
}
|
||||
else if (species > NUM_SPECIES) // is species unknown? draw the ? icon
|
||||
LZ77UnCompWram(gMonFrontPicTable[0].data, dest);
|
||||
else if (SpeciesHasGenderDifference[species] && GetGenderFromSpeciesAndPersonality(species, personality) == MON_FEMALE)
|
||||
LZ77UnCompWram(gMonFrontPicTableFemale[species].data, dest);
|
||||
else
|
||||
LZ77UnCompWram(src->data, dest);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user