Merge pull request #438 from ElectroDeoxys/master
Some checks failed
GithubCI / build (push) Has been cancelled

Document dungeon belly functions/exit reasons, identify struct fields
This commit is contained in:
AnonymousRandomPerson
2025-09-06 00:25:57 -04:00
committed by GitHub
76 changed files with 1211 additions and 1022 deletions

View File

@@ -292,7 +292,7 @@ typedef struct EntityInfo
/* 0x140 */ FixedPoint maxBelly;
/* 0x144 */ bool8 aiAllySkip; // True if an AI Pokémon is following another Pokémon and is already adjacent to them.
/* 0x145 */ bool8 recalculateFollow; // Used by the AI to defer a movement decision until after all other Pokémon have moved.
/* 0x146 */ u8 unk146;
/* 0x146 */ bool8 bellyEmpty;
/* 0x147 */ bool8 waiting; // True if an AI Pokémon decided to do nothing this turn.
/* 0x148 */ bool8 attacking;
/* 0x149 */ u8 unk149;
@@ -303,7 +303,7 @@ typedef struct EntityInfo
/* 0x14E */ u16 visualFlags;
/* 0x150 */ u16 previousVisualFlags;
/* 0x152 */ u8 unk152;
u8 unk153;
/* 0x153 */ u8 usedLinkedMovesCounter; // how many linked moves were used this turn.
u8 unk154;
u8 unk155;
u8 unk156;

View File

@@ -35,11 +35,11 @@ typedef struct Weather // 0xE264
} Weather;
// size: 0x30
typedef struct UnkDungeonGlobal_unk1CE98_sub
typedef struct DungeonExitSummary
{
/* 0x0 */ u8 buffer1[10];
/* 0xA */ u8 buffer2[10];
/* 0x14 */ s16 moveID;
/* 0x14 */ s16 exitReason; // which move knocked out player, or reason to exit dungeon
/* 0x16 */ u8 fill16[0x2];
/* 0x18 */ DungeonLocation dungeonLocation;
/* 0x1C */ Item heldItem;
@@ -55,7 +55,7 @@ typedef struct UnkDungeonGlobal_unk1CE98_sub
/* 0x2D */ u8 defBoost;
/* 0x2E */ u8 spDefBoost;
u8 unk2F; // speedBoost?
} UnkDungeonGlobal_unk1CE98_sub;
} DungeonExitSummary;
// size: 0x10
typedef struct DungeonMusicPlayer
@@ -271,7 +271,7 @@ typedef struct unkDungeon644
/* 0x32 */ bool8 itemHoldersIdentified;
/* 0x33 */ u8 unk33;
/* 0x34 */ u8 unk34;
/* 0x35 */ u8 unk35;
/* 0x35 */ u8 emptyBellyAlert; // which alert message to show when belly gets empty.
/* 0x36 */ u8 unk36;
/* 0x37 */ s8 unk37;
/* 0x38 */ u32 unk38;
@@ -482,7 +482,7 @@ typedef struct Dungeon
/* 0x1C590 */ ItemSpawns itemSpawns[ITEM_SPAWN_TYPES_COUNT];
/* 0x1CD70 */ u16 trapSpawnChances[NUM_TRAPS];
SpawnPokemonData fileMonsterSpawns[MONSTER_SPAWNS_ARR_COUNT]; // Taken directly from "mapparam" which corresponds to available monsters on given dungeon's floor.
UnkDungeonGlobal_unk1CE98_sub unk1CE98; // TODO: not sure how large this is
DungeonExitSummary exitSummary; // TODO: not sure how large this is
u8 unk1CEC8;
/* 0x1CECC */ DungeonMusicPlayer musPlayer;
} Dungeon;