OSDN Git Service

[Refactor] #38862 Moved view-mainwindow.c/h to display-main-window.c/h
[hengband/hengband.git] / src / object1.c
index 5b946d1..36a8829 100644 (file)
 
 #include "angband.h"
 #include "core.h"
+#include "io/read-pref-file.h"
 #include "util.h"
 
 #include "artifact.h"
 #include "floor.h"
 #include "cmd-activate.h"
-#include "objectkind.h"
+#include "object/object-kind.h"
 #include "object-ego.h"
 #include "object-flavor.h"
 #include "object-hook.h"
 #include "player-inventory.h"
 #include "monster.h"
 #include "files.h"
-#include "term.h"
+#include "gameterm.h"
 #include "cmd-smith.h"
 #include "snipe.h"
-#include "view-mainwindow.h"
+#include "view/display-main-window.h"
 
 #if defined(MACH_O_CARBON)
 #ifdef verify
@@ -248,7 +249,7 @@ void object_flags_known(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE])
                }
        }
 
-       if (spoil || (o_ptr->ident & IDENT_MENTAL))
+       if (spoil || OBJECT_IS_FULL_KNOWN(o_ptr))
        {
                if (object_is_fixed_artifact(o_ptr))
                {