OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #37353 object_is_* マクロ2つを、 object-hook.h へ移動。
[hengband/hengband.git]
/
src
/
object-hook.h
diff --git
a/src/object-hook.h
b/src/object-hook.h
index
d8637c4
..
8138e2d
100644
(file)
--- a/
src/object-hook.h
+++ b/
src/object-hook.h
@@
-51,3
+51,13
@@
extern bool object_can_refill_torch(object_type *o_ptr);
extern bool can_player_destroy_object(object_type *o_ptr);
extern bool object_is_quest_target(object_type *o_ptr);
extern bool can_player_destroy_object(object_type *o_ptr);
extern bool object_is_quest_target(object_type *o_ptr);
+/*
+ * Determine if a given inventory item is "aware"
+ */
+#define object_is_aware(T) (k_info[(T)->k_idx].aware)
+
+ /*
+ * Determine if a given inventory item is "tried"
+ */
+#define object_is_tried(T) (k_info[(T)->k_idx].tried)
+