add world map comment, remove not needed include

This commit is contained in:
DizzyEggg
2025-06-07 12:52:25 +02:00
parent 178f4e95dc
commit b03b00a9cf
8 changed files with 9 additions and 21 deletions

View File

@@ -1,6 +0,0 @@
#ifndef GUARD_CODE_807E5AC_H
#define GUARD_CODE_807E5AC_H
void sub_807FA9C(void);
#endif // GUARD_CODE_807E5AC_H

View File

@@ -5,6 +5,7 @@
#include "structs/map.h"
#include "structs/str_position.h"
void sub_807FA9C(void);
bool8 CanLayTrap(DungeonPos *pos);
bool8 LayTrap(DungeonPos *pos, u8 trapID, u8 param_3);
bool8 sub_807FD84(Entity *entity);
@@ -28,13 +29,7 @@ void HandlePPZeroTrap(Entity *pokemon, Entity *target);
void HandleWonderTile(Entity *pokemon, Entity *target);
void HandleSealTrap(Entity *pokemon, Entity *target);
void HandleWhirlwindTrap(Entity *entity, Entity *target);
// code_807FCD4.s
extern void HandleSealTrap(Entity *pokemon, Entity *target);
extern void HandleWhirlwindTrap(Entity *entity, Entity *target);
extern void HandlePokemonTrap(Entity *pokemon, DungeonPos *pos);
// trap_1.c
void HandlePokemonTrap(Entity *pokemon, DungeonPos *pos);
void HandleTripTrap(Entity *pokemon, Entity *target);
void SetTrap(Tile *tile, u8 id);

View File

@@ -10,6 +10,8 @@
#include "structs/str_pokemon.h"
#include "structs/str_dungeon_setup.h"
#define UNK_WORLD_MAP_52E0_COUNT 1500
struct UnkStruct_Sub1
{
u8 unk0;
@@ -29,8 +31,9 @@ struct WorldMap
s32 unk52D4;
DungeonPos bgPos;
DungeonPos monSpritePos;
u16 unk52E0[1500];
u8 unk5E98[1500];
// Both fields below are effectively unused. Could be NDS-only?
u16 unk52E0[UNK_WORLD_MAP_52E0_COUNT];
u8 unk5E98[UNK_WORLD_MAP_52E0_COUNT];
};
#define WORLD_MAP_UNK_6D_COUNT 63