Option to disabling follower Pokémon

This commit is contained in:
Eduardo Quezada 2024-02-17 23:49:52 -03:00
parent 124c17d315
commit f350000b44
2 changed files with 4 additions and 0 deletions

View file

@ -286,6 +286,8 @@
#define OW_SPECIES(x) (((x)->graphicsId & OBJ_EVENT_GFX_SPECIES_MASK) - OBJ_EVENT_GFX_MON_BASE)
#define OW_FORM(x) ((x)->graphicsId >> OBJ_EVENT_GFX_SPECIES_BITS)
#define OW_FOLLOWERS_ENABLED FALSE
// If true, follower pokemon will bob up and down
// during their idle & walking animations
#define OW_MON_BOBBING TRUE

View file

@ -2080,6 +2080,8 @@ void RemoveFollowingPokemon(void)
// Determine whether follower *should* be visible
static bool32 IsFollowerVisible(void)
{
if (OW_FOLLOWERS_ENABLED == FALSE)
return FALSE;
return
!(TestPlayerAvatarFlags(FOLLOWER_INVISIBLE_FLAGS)
|| MetatileBehavior_IsSurfableWaterOrUnderwater(gObjectEvents[gPlayerAvatar.objectEventId].previousMetatileBehavior)