pokeemerald-expansion/include/follower_npc_alternate_sprites.h
Bivurnum b1200117a9
Better system for Follower NPC running frames (#7222)
Co-authored-by: hedara90 <90hedara@gmail.com>
2025-06-27 10:12:35 +02:00

36 lines
1.4 KiB
C

#ifndef GUARD_FOLLOWER_NPC_ALTERNATE_SPRITES_H
#define GUARD_FOLLOWER_NPC_ALTERNATE_SPRITES_H
#include "constants/event_objects.h"
// This is where alternate sprites for NPC followers should be listed.
// If the appropriate alternate sprites are not added here, the NPC follower will not use the correct sprites for biking,
// surfing, etc.
// The normalId tells the game what GFX to tie the associated alternate sprites to. This is usually the sprite you would
// give to the object in Porymap.
// For example, Rival May's normalId is OBJ_EVENT_GFX_RIVAL_MAY_NORMAL. All the rest of the sprites in that same block
// will be used with an NPC follower that has that normalId.
static const struct FollowerNPCSpriteGraphics gFollowerNPCAlternateSprites[] =
{
{
.normalId = OBJ_EVENT_GFX_RIVAL_MAY_NORMAL,
.machBikeId = OBJ_EVENT_GFX_RIVAL_MAY_MACH_BIKE,
.acroBikeId = OBJ_EVENT_GFX_RIVAL_MAY_ACRO_BIKE,
.surfId = OBJ_EVENT_GFX_RIVAL_MAY_SURFING,
.underwaterId = OBJ_EVENT_GFX_MAY_UNDERWATER,
.hasRunningFrames = TRUE,
},
{
.normalId = OBJ_EVENT_GFX_RIVAL_BRENDAN_NORMAL,
.machBikeId = OBJ_EVENT_GFX_RIVAL_BRENDAN_MACH_BIKE,
.acroBikeId = OBJ_EVENT_GFX_RIVAL_BRENDAN_ACRO_BIKE,
.surfId = OBJ_EVENT_GFX_RIVAL_BRENDAN_SURFING,
.underwaterId = OBJ_EVENT_GFX_BRENDAN_UNDERWATER,
.hasRunningFrames = TRUE,
},
};
#endif // GUARD_FOLLOWER_NPC_ALTERNATE_SPRITES_H