OSDN Git Service

[Fix] #40340 switch case文における意図しないfall through
[hengband/hengband.git] / src / object-hook / hook-checker.c
1 #include "object-hook/hook-checker.h"
2 #include "system/object-type-definition.h"
3 #include "object-enchant/special-object-flags.h"
4
5 bool object_is_valid(object_type *o_ptr) { return o_ptr->k_idx != 0; }
6
7 bool object_is_held_monster(object_type *o_ptr) { return o_ptr->held_m_idx != 0; }
8
9 bool object_is_broken(object_type *o_ptr) { return (o_ptr->ident & IDENT_BROKEN) != 0; }
10
11 bool object_is_cursed(object_type *o_ptr) { return o_ptr->curse_flags != 0; }