mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-14 15:43:43 +01:00
Use shiny species tag
This commit is contained in:
parent
8751fafad1
commit
70569e7ebc
@ -487,7 +487,7 @@ u8 GetDefaultMoveTarget(u8 battlerId);
|
|||||||
u8 GetMonGender(struct Pokemon *mon);
|
u8 GetMonGender(struct Pokemon *mon);
|
||||||
u8 GetBoxMonGender(struct BoxPokemon *boxMon);
|
u8 GetBoxMonGender(struct BoxPokemon *boxMon);
|
||||||
u8 GetGenderFromSpeciesAndPersonality(u16 species, u32 personality);
|
u8 GetGenderFromSpeciesAndPersonality(u16 species, u32 personality);
|
||||||
void SetMultiuseSpriteTemplateToPokemon(u16 species, u8 battlerPosition);
|
void SetMultiuseSpriteTemplateToPokemon(u16 speciesTag, u8 battlerPosition);
|
||||||
void SetMultiuseSpriteTemplateToTrainerBack(u16 trainerSpriteId, u8 battlerPosition);
|
void SetMultiuseSpriteTemplateToTrainerBack(u16 trainerSpriteId, u8 battlerPosition);
|
||||||
void SetMultiuseSpriteTemplateToTrainerFront(u16 arg0, u8 battlerPosition);
|
void SetMultiuseSpriteTemplateToTrainerFront(u16 arg0, u8 battlerPosition);
|
||||||
|
|
||||||
|
@ -3413,7 +3413,7 @@ u8 GetGenderFromSpeciesAndPersonality(u16 species, u32 personality)
|
|||||||
return MON_MALE;
|
return MON_MALE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetMultiuseSpriteTemplateToPokemon(u16 species, u8 battlerPosition)
|
void SetMultiuseSpriteTemplateToPokemon(u16 speciesTag, u8 battlerPosition)
|
||||||
{
|
{
|
||||||
if (gMonSpritesGfxPtr != NULL)
|
if (gMonSpritesGfxPtr != NULL)
|
||||||
gMultiuseSpriteTemplate = gMonSpritesGfxPtr->templates[battlerPosition];
|
gMultiuseSpriteTemplate = gMonSpritesGfxPtr->templates[battlerPosition];
|
||||||
@ -3424,13 +3424,13 @@ void SetMultiuseSpriteTemplateToPokemon(u16 species, u8 battlerPosition)
|
|||||||
else
|
else
|
||||||
gMultiuseSpriteTemplate = gUnknown_08329D98[battlerPosition];
|
gMultiuseSpriteTemplate = gUnknown_08329D98[battlerPosition];
|
||||||
|
|
||||||
gMultiuseSpriteTemplate.paletteTag = species;
|
gMultiuseSpriteTemplate.paletteTag = speciesTag;
|
||||||
if (battlerPosition == B_POSITION_PLAYER_LEFT || battlerPosition == B_POSITION_PLAYER_RIGHT)
|
if (battlerPosition == B_POSITION_PLAYER_LEFT || battlerPosition == B_POSITION_PLAYER_RIGHT)
|
||||||
gMultiuseSpriteTemplate.anims = gUnknown_082FF70C;
|
gMultiuseSpriteTemplate.anims = gUnknown_082FF70C;
|
||||||
else if (species > SPECIES_SHINY_TAG)
|
else if (speciesTag > SPECIES_SHINY_TAG)
|
||||||
gMultiuseSpriteTemplate.anims = gMonFrontAnimsPtrTable[species - SPECIES_SHINY_TAG];
|
gMultiuseSpriteTemplate.anims = gMonFrontAnimsPtrTable[speciesTag - SPECIES_SHINY_TAG];
|
||||||
else
|
else
|
||||||
gMultiuseSpriteTemplate.anims = gMonFrontAnimsPtrTable[species];
|
gMultiuseSpriteTemplate.anims = gMonFrontAnimsPtrTable[speciesTag];
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetMultiuseSpriteTemplateToTrainerBack(u16 trainerSpriteId, u8 battlerPosition)
|
void SetMultiuseSpriteTemplateToTrainerBack(u16 trainerSpriteId, u8 battlerPosition)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user