mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-26 00:26:19 -05:00
21 lines
487 B
C
21 lines
487 B
C
#include "overlay_29_02315118.h"
|
|
#include "dungeon_items.h"
|
|
#include "dungeon_pokemon_attributes.h"
|
|
#include "dungeon_util_static.h"
|
|
|
|
bool8 EntityIsValid__02315118(struct entity *entity)
|
|
{
|
|
if (entity == NULL)
|
|
return FALSE;
|
|
|
|
return GetEntityType(entity) != ENTITY_NOTHING;
|
|
}
|
|
|
|
bool8 ItemIsActive__0231513C(struct entity *entity, enum item_id item_id)
|
|
{
|
|
if (AbilityIsActiveVeneer(entity, ABILITY_KLUTZ))
|
|
return FALSE;
|
|
|
|
return HasHeldItem(entity, item_id);
|
|
}
|