Clean up files

This commit is contained in:
pkmnsnfrn 2024-07-25 20:34:14 -07:00
parent bf11e0c27b
commit 7717812154
7 changed files with 17 additions and 23 deletions

View file

@ -3,7 +3,7 @@
// Movement config // Movement config
#define OW_RUNNING_INDOORS GEN_LATEST // In Gen4+, players are allowed to run indoors. #define OW_RUNNING_INDOORS GEN_LATEST // In Gen4+, players are allowed to run indoors.
#define OW_AUTO_SIGNPOST TRUE // When enabled, if the tile that the player is facing has MB_SIGNPOST, the player will automatically read the signpost. #define OW_AUTO_SIGNPOST TRUE // When enabled, if the tile that the player is facing has MB_SIGNPOST, MB_POKEMART_SIGN, or MB_POKEMON_CENTER_SIGN, the player will automatically read the signpost.
// Other settings // 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. #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

@ -647,7 +647,6 @@ extern const u8 VSSeeker_Text_NoTrainersWithinRange[];
extern const u8 VSSeeker_Text_TrainersNotReady[]; extern const u8 VSSeeker_Text_TrainersNotReady[];
extern const u8 EventScript_VsSeekerChargingDone[]; extern const u8 EventScript_VsSeekerChargingDone[];
extern const u8 EventScript_CancelMessageBox[]; extern const u8 EventScript_CancelMessageBox[];
extern const u8 Common_EventScript_ShowPokemonCenterSign[]; extern const u8 Common_EventScript_ShowPokemonCenterSign[];
extern const u8 Common_EventScript_ShowPokemartSign[]; extern const u8 Common_EventScript_ShowPokemartSign[];

View file

@ -2,9 +2,9 @@
#define GUARD_GRAPHICS_H #define GUARD_GRAPHICS_H
// overworld // overworld
extern const u16 gMessageBox_Pal[];
extern const u32 gMessageBox_Gfx[];
extern const u32 gSignpostWindow_Gfx[]; extern const u32 gSignpostWindow_Gfx[];
extern const u32 gMessageBox_Gfx[];
extern const u16 gMessageBox_Pal[];
// pokeballs // pokeballs
extern const u32 gBallGfx_Poke[]; extern const u32 gBallGfx_Poke[];

View file

@ -11,7 +11,6 @@
#define STD_WINDOW_PALETTE_SIZE PLTT_SIZEOF(10) #define STD_WINDOW_PALETTE_SIZE PLTT_SIZEOF(10)
#define STD_WINDOW_BASE_TILE_NUM 0x214 #define STD_WINDOW_BASE_TILE_NUM 0x214
#define MENU_NOTHING_CHOSEN -2 #define MENU_NOTHING_CHOSEN -2
#define MENU_B_PRESSED -1 #define MENU_B_PRESSED -1

View file

@ -148,8 +148,8 @@ bool8 MetatileBehavior_IsQuestionnaire(u8);
bool8 MetatileBehavior_IsLongGrass_Duplicate(u8); bool8 MetatileBehavior_IsLongGrass_Duplicate(u8);
bool8 MetatileBehavior_IsLongGrassSouthEdge(u8); bool8 MetatileBehavior_IsLongGrassSouthEdge(u8);
bool8 MetatileBehavior_IsTrainerHillTimer(u8); bool8 MetatileBehavior_IsTrainerHillTimer(u8);
bool8 MetatileBehavior_IsSignpost(u8 mb); bool32 MetatileBehavior_IsSignpost(u32 mb);
bool8 MetatileBehavior_IsPokemonCenterSign(u8 mb); bool32 MetatileBehavior_IsPokemonCenterSign(u32 mb);
bool8 MetatileBehavior_IsPokeMartSign(u8 mb); bool32 MetatileBehavior_IsPokeMartSign(u32 mb);
#endif // GUARD_METATILE_BEHAVIOR_H #endif // GUARD_METATILE_BEHAVIOR_H

View file

@ -35,6 +35,7 @@
#include "constants/event_objects.h" #include "constants/event_objects.h"
#include "constants/field_poison.h" #include "constants/field_poison.h"
#include "constants/map_types.h" #include "constants/map_types.h"
#include "constants/metatile_behaviors.h"
#include "constants/songs.h" #include "constants/songs.h"
#include "constants/trainer_hill.h" #include "constants/trainer_hill.h"
@ -43,12 +44,7 @@ static EWRAM_DATA u16 sPrevMetatileBehavior = 0;
u8 gSelectedObjectEvent; u8 gSelectedObjectEvent;
#define SIGNPOST_POKECENTER 0 #define SIGNPOST_NA 0
#define SIGNPOST_POKEMART 1
#define SIGNPOST_INDIGO_1 2
#define SIGNPOST_INDIGO_2 3
#define SIGNPOST_SCRIPTED 240
#define SIGNPOST_NA 255
static void GetPlayerPosition(struct MapPosition *); static void GetPlayerPosition(struct MapPosition *);
static void GetInFrontOfPlayerPosition(struct MapPosition *); static void GetInFrontOfPlayerPosition(struct MapPosition *);
@ -1110,13 +1106,13 @@ static bool8 TrySetUpWalkIntoSignpostScript(struct MapPosition *position, u16 me
switch (GetFacingSignpostType(metatileBehavior, playerDirection)) switch (GetFacingSignpostType(metatileBehavior, playerDirection))
{ {
case SIGNPOST_POKECENTER: case MB_POKEMON_CENTER_SIGN:
SetUpWalkIntoSignScript(Common_EventScript_ShowPokemonCenterSign, playerDirection); SetUpWalkIntoSignScript(Common_EventScript_ShowPokemonCenterSign, playerDirection);
return TRUE; return TRUE;
case SIGNPOST_POKEMART: case MB_POKEMART_SIGN:
SetUpWalkIntoSignScript(Common_EventScript_ShowPokemartSign, playerDirection); SetUpWalkIntoSignScript(Common_EventScript_ShowPokemartSign, playerDirection);
return TRUE; return TRUE;
case SIGNPOST_SCRIPTED: case MB_SIGNPOST:
script = GetSignpostScriptAtMapPosition(position); script = GetSignpostScriptAtMapPosition(position);
if (script == NULL) if (script == NULL)
return FALSE; return FALSE;
@ -1130,12 +1126,12 @@ static bool8 TrySetUpWalkIntoSignpostScript(struct MapPosition *position, u16 me
static u8 GetFacingSignpostType(u16 metatileBehavior, u8 playerDirection) static u8 GetFacingSignpostType(u16 metatileBehavior, u8 playerDirection)
{ {
if (MetatileBehavior_IsPokemonCenterSign(metatileBehavior) == TRUE) if (MetatileBehavior_IsPokemonCenterSign(metatileBehavior) == TRUE)
return SIGNPOST_POKECENTER; return MB_POKEMON_CENTER_SIGN;
if (MetatileBehavior_IsPokeMartSign(metatileBehavior) == TRUE) if (MetatileBehavior_IsPokeMartSign(metatileBehavior) == TRUE)
return SIGNPOST_POKEMART; return MB_POKEMART_SIGN;
if (MetatileBehavior_IsSignpost(metatileBehavior) == TRUE) if (MetatileBehavior_IsSignpost(metatileBehavior) == TRUE)
return SIGNPOST_SCRIPTED; return MB_SIGNPOST;
return SIGNPOST_NA; return SIGNPOST_NA;
} }

View file

@ -1404,7 +1404,7 @@ bool8 MetatileBehavior_IsTrainerHillTimer(u8 metatileBehavior)
return FALSE; return FALSE;
} }
bool8 MetatileBehavior_IsSignpost(u8 mb) bool32 MetatileBehavior_IsSignpost(u32 mb)
{ {
#if OW_AUTO_SIGNPOST == TRUE #if OW_AUTO_SIGNPOST == TRUE
return (mb == MB_SIGNPOST); return (mb == MB_SIGNPOST);
@ -1413,7 +1413,7 @@ bool8 MetatileBehavior_IsSignpost(u8 mb)
#endif #endif
} }
bool8 MetatileBehavior_IsPokemonCenterSign(u8 mb) bool32 MetatileBehavior_IsPokemonCenterSign(u32 mb)
{ {
#if OW_AUTO_SIGNPOST == TRUE #if OW_AUTO_SIGNPOST == TRUE
return (mb == MB_POKEMON_CENTER_SIGN); return (mb == MB_POKEMON_CENTER_SIGN);
@ -1422,7 +1422,7 @@ bool8 MetatileBehavior_IsPokemonCenterSign(u8 mb)
#endif #endif
} }
bool8 MetatileBehavior_IsPokeMartSign(u8 mb) bool32 MetatileBehavior_IsPokeMartSign(u32 mb)
{ {
#if OW_AUTO_SIGNPOST == TRUE #if OW_AUTO_SIGNPOST == TRUE
return (mb == MB_POKEMART_SIGN); return (mb == MB_POKEMART_SIGN);