mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-09 09:35:45 -05:00
Fix bug in the dungeon requirement text function
This commit is contained in:
@@ -18,7 +18,12 @@ void PrintYellowDungeonNametoBuffer(u8 *buffer, DungeonLocation *dungeonLocation
|
||||
void PrintDungeonLocationtoBuffer(u8 *buffer, DungeonLocation *dungeonLocation);
|
||||
|
||||
void GeneralizeMazeDungeonLoc(DungeonLocation *dst, const DungeonLocation *src);
|
||||
u32 sub_809034C(u8 dungeonIndex, s32 speciesId_, u8 *buffer, bool32 param_4_, bool32 param_5_);
|
||||
|
||||
#define DUNGEON_REQUIREMENTS_PASS 0
|
||||
#define DUNGEON_REQUIREMENTS_FAIL 1
|
||||
#define DUNGEON_REQUIREMENTS_ASK 2
|
||||
|
||||
u32 BufferDungeonRequirementsText(u8 dungeonIndex, s32 speciesId_, u8 *buffer, bool32 param_4_, bool32 param_5_);
|
||||
u32 GetDungeonLocMissionDifficulty(DungeonLocation *dungeon);
|
||||
u8 GetRandomItemForValidDungeonLoc(DungeonLocation *dungeon, u32 param_2);
|
||||
bool8 IsNotValidDungeon(u8 dungeon);
|
||||
|
||||
@@ -50,6 +50,11 @@ static inline u8 *InlineStrncpy(u8 *dst, const u8 *src, s32 n)
|
||||
return strncpy(dst, src, n);
|
||||
}
|
||||
|
||||
static inline u8 *InlineStrcat(u8 *dst, u8 *src)
|
||||
{
|
||||
return strcat(dst, src);
|
||||
}
|
||||
|
||||
static inline bool8 AreStringsDifferent(const u8 *str1, const u8 *str2)
|
||||
{
|
||||
return strcmp(str1, str2) != 0;
|
||||
|
||||
Reference in New Issue
Block a user