OSDN Git Service

[Refactor] #39076 冗長なコメントを削除しつつ、 OBJECT_IS_HELD_MONSTER() マクロに置換。
[hengband/hengband.git] / src / object-hook.h
index 4d53246..83ea5a9 100644 (file)
@@ -70,6 +70,8 @@ extern bool object_is_quest_target(object_type *o_ptr);
 
 #define OBJECT_IS_VALID(T) ((T)->k_idx != 0)
 
+#define OBJECT_IS_HELD_MONSTER(T) ((T)->held_m_idx != 0)
+
 /*
  * Artifacts use the "name1" field
  */