Add config to disable OW_AUTO_SIGNPOST

This commit is contained in:
pkmnsnfrn 2024-07-15 21:45:34 -07:00
parent 28183ec299
commit b43e0e07f7
3 changed files with 11 additions and 0 deletions

View file

@ -3,6 +3,7 @@
// Movement config
#define OW_RUNNING_INDOORS GEN_LATEST // In Gen4+, players are allowed to run indoors.
#define OW_AUTO_SIGNPOST FALSE // When the tile that the player is facing has MB_SIGNPOST, the player will automatically read the signpoost.
// Other settings
#define OW_POISON_DAMAGE GEN_LATEST // In Gen4, Pokémon no longer faint from Poison in the overworld. In Gen5+, they no longer take damage at all.

View file

@ -30,7 +30,11 @@
#define MB_UNUSED_SOOTOPOLIS_DEEP_WATER_2 0x1A
#define MB_STAIRS_OUTSIDE_ABANDONED_SHIP 0x1B
#define MB_SHOAL_CAVE_ENTRANCE 0x1C
#if OW_AUTO_SIGNPOST == TRUE
#define MB_SIGNPOST 0x1D
#else
#define MB_UNUSED_1D 0x1D
#endif
#define MB_UNUSED_1E 0x1E
#define MB_UNUSED_1F 0x1F
#define MB_ICE 0x20

View file

@ -125,7 +125,9 @@ static const u8 sTileBitAttributes[NUM_METATILE_BEHAVIORS] =
[MB_ISOLATED_HORIZONTAL_RAIL] = TILE_FLAG_UNUSED,
[MB_VERTICAL_RAIL] = TILE_FLAG_UNUSED,
[MB_HORIZONTAL_RAIL] = TILE_FLAG_UNUSED,
#if OW_AUTO_SIGNPOST == TRUE
[MB_SIGNPOST] = TILE_FLAG_UNUSED,
#endif
};
bool8 MetatileBehavior_IsATile(u8 metatileBehavior)
@ -1404,6 +1406,10 @@ bool8 MetatileBehavior_IsTrainerHillTimer(u8 metatileBehavior)
bool8 MetatileBehavior_IsSignpost(u8 mb)
{
#if OW_AUTO_SIGNPOST == TRUE
return (mb == MB_SIGNPOST);
#else
return FALSE;
#endif
}