summaryrefslogtreecommitdiff
path: root/src/squelch
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
committerBardur Arantsson <bardur@scientician.net>2018-03-25 20:07:30 +0200
commit8de61b84e438cd270f65e134e7e0590972b4199a (patch)
tree3f420476267a4e00f913f84eafdfa20d0b84c3ce /src/squelch
parentc21bf1340b495c2cb5bf146a8fa6fc765026b6e2 (diff)
Remove IDENT_CURSED
We no longer need to track having "identified" whether an item is cursed separately.
Diffstat (limited to 'src/squelch')
-rw-r--r--src/squelch/object_status.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/squelch/object_status.cc b/src/squelch/object_status.cc
index 268bf620..b5af0c94 100644
--- a/src/squelch/object_status.cc
+++ b/src/squelch/object_status.cc
@@ -5,6 +5,7 @@
#include "../object1.hpp"
#include "../object2.hpp"
#include "../object_type.hpp"
+#include "../object_flag.hpp"
#include "../variable.hpp"
namespace squelch {
@@ -38,7 +39,7 @@ status_type object_status(object_type *o_ptr)
if (artifact_p(o_ptr))
{
- if (!(o_ptr->ident & IDENT_CURSED))
+ if (!(o_ptr->art_flags & TR_CURSED))
{
return status_type::SPECIAL;
}
@@ -50,7 +51,7 @@ status_type object_status(object_type *o_ptr)
else if ((o_ptr->name2 > 0) ||
(o_ptr->name2b > 0))
{
- if (!(o_ptr->ident & IDENT_CURSED))
+ if (!(o_ptr->art_flags & TR_CURSED))
{
return status_type::VERY_GOOD;
}