dungeon info and dungeon item action externs

This commit is contained in:
DizzyEggg
2025-08-28 13:04:51 +02:00
parent 8c112533fa
commit 11d958b0ac
16 changed files with 152 additions and 178 deletions

View File

@@ -2,24 +2,34 @@
#define GUARD_DUNGEON_INFO_H
#include "structs/str_dungeon_location.h"
#include "data_serializer.h"
extern const u16 *const gRandomItemsSets[];
extern const u8 gUnknown_8108EC0[];
s32 GetDungeonFloorCount(u8 dungeon);
s32 GetDungeonStartingFloor(u8 dungeon);
const u8 *GetDungeonName1(u8 dungeon);
const u8 *GetDungeonName2(u8 dungeon);
bool8 IsStairDirectionUp(u8 dungeon);
s16 GetTurnLimit(u8 dungeon);
bool8 IsEnterWithoutGameSave(u8 dungeon);
bool8 HasCheckpoint(u8 dungeon);
bool8 IsLevelResetDungeon(u8 dungeon);
u32 GetMaxItemsAllowed(u8 dungeon);
bool8 IsMoneyAllowed(u8 dungeon);
s8 GetRescuesAllowed(u8 dungeon);
bool8 HasCheckpoint(u8 dungeon);
u8 IsRecruitingEnabled(u8 dungeon);
bool8 CanLeaderSwitch(u8 dungeon);
s16 GetRandomMovementChance(u8 dungeon);
bool8 sub_809017C(DungeonLocation* a1);
void GeneralizeMazeDungeonLoc(DungeonLocation *dst, const DungeonLocation *src);
void PrintYellowDungeonNametoBuffer(u8 *buffer, DungeonLocation *dungeonLocation);
void PrintDungeonLocationtoBuffer(u8 *buffer, DungeonLocation *dungeonLocation);
void GeneralizeMazeDungeonLoc(DungeonLocation *dst, const DungeonLocation *src);
void CopyDungeonName1toBuffer(u8 *buffer, DungeonLocation *dungeonLocation);
s32 GetDungeonFloorCount(u8 dungeon);
s32 GetDungeonStartingFloor(u8 dungeon);
void WriteDungeonLocationBits(DataSerializer* r0, DungeonLocation* src);
void ReadDungeonLocationBits(DataSerializer* r0, DungeonLocation* dst);
bool8 DoEnemiesEvolveWhenKOed(u8 dungeon);
#define DUNGEON_REQUIREMENTS_PASS 0
#define DUNGEON_REQUIREMENTS_FAIL 1
@@ -29,6 +39,5 @@ u32 BufferDungeonRequirementsText(u8 dungeonIndex, s32 speciesId_, u8 *buffer, b
u32 GetDungeonLocMissionDifficulty(DungeonLocation *dungeon);
u8 GetRandomItemForValidDungeonLoc(DungeonLocation *dungeon, u32 param_2);
bool8 IsNotValidDungeon(u8 dungeon);
u8 IsRecruitingEnabled(u8 dungeon);
#endif // GUARD_DUNGEON_INFO_H

View File

@@ -0,0 +1,13 @@
#ifndef GUARD_DUNGEON_ITEM_ACTION_H
#define GUARD_DUNGEON_ITEM_ACTION_H
#include "structs/str_items.h"
#include "structs/dungeon_entity.h"
void sub_80479B8(char param_1, char param_2, u8 param_3, Entity *pokemon, Entity *target, Item *item);
bool8 sub_8048950(Entity *param_1,Item *item);
bool8 sub_8048A68(Entity *param_1,Item *item);
bool8 sub_8048B9C(Entity *entity, Item *item);
bool8 sub_8048D50(Entity *pokemon, Item *item);
#endif // GUARD_DUNGEON_ITEM_ACTION_H