mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-08 00:55:53 -05:00
Replace EntTrapInfo with Trap
This commit is contained in:
@@ -88,7 +88,7 @@ struct axObject
|
||||
{
|
||||
struct Item* item;
|
||||
struct EntityInfo* monster;
|
||||
struct EntTrapInfo* trap;
|
||||
struct Trap* trap;
|
||||
} info;
|
||||
};
|
||||
|
||||
|
||||
@@ -352,13 +352,6 @@ typedef struct EntityInfo
|
||||
u8 unk204;
|
||||
} EntityInfo;
|
||||
|
||||
// size: 0x4
|
||||
typedef struct EntTrapInfo
|
||||
{
|
||||
/* 0x0 */ u8 unk0;
|
||||
/* 0x0 */ u8 unk1;
|
||||
} EntTrapInfo;
|
||||
|
||||
// size: 0x74 | Used for Pokémon, items, and traps.
|
||||
typedef struct Entity
|
||||
{
|
||||
@@ -477,9 +470,4 @@ static inline void SetExpMultplier(EntityInfo *info)
|
||||
SetRegularExpMultiplier(info);
|
||||
}
|
||||
|
||||
static inline EntityInfo *GetEntInfo(Entity *ent)
|
||||
{
|
||||
return ent->axObj.info.monster;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "structs/map.h"
|
||||
#include "structs/rgb.h"
|
||||
#include "structs/str_position.h"
|
||||
#include "structs/str_traps.h"
|
||||
#include "sprite.h"
|
||||
|
||||
#define DUNGEON_MAX_SIZE_X 56
|
||||
@@ -356,7 +357,7 @@ typedef struct Dungeon
|
||||
/* 0x3800 */ s16 deoxysForm;
|
||||
Item unk3804[DUNGEON_MAX_ITEMS];
|
||||
/* 0x3904 */ s16 unk3904;
|
||||
EntTrapInfo unk3908[DUNGEON_MAX_TRAPS];
|
||||
Trap unk3908[DUNGEON_MAX_TRAPS];
|
||||
/* 0x3A08 */ bool8 unk3A08;
|
||||
/* 0x3A09 */ bool8 unk3A09;
|
||||
/* 0x3A0A */ bool8 unk3A0A;
|
||||
|
||||
@@ -3,10 +3,11 @@
|
||||
|
||||
#include "constants/trap.h"
|
||||
|
||||
typedef struct Trap
|
||||
// size: 0x4
|
||||
typedef struct Trap
|
||||
{
|
||||
/* 0x0 */ u8 id;
|
||||
/* 0x1 */ u8 unk1;
|
||||
} Trap;
|
||||
|
||||
#endif // GUARD_STR_TRAPS_H
|
||||
#endif // GUARD_STR_TRAPS_H
|
||||
Reference in New Issue
Block a user