1 #include "object-hook/hook-checker.h"
2 #include "system/object-type-definition.h"
3 #include "object-enchant/special-object-flags.h"
5 bool object_is_valid(object_type *o_ptr) { return o_ptr->k_idx != 0; }
7 bool object_is_held_monster(object_type *o_ptr) { return o_ptr->held_m_idx != 0; }
9 bool object_is_broken(object_type *o_ptr) { return (o_ptr->ident & IDENT_BROKEN) != 0; }
11 bool object_is_cursed(object_type *o_ptr) { return o_ptr->curse_flags != 0; }