diff options
author | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2018-03-25 20:07:30 +0200 |
commit | 8de61b84e438cd270f65e134e7e0590972b4199a (patch) | |
tree | 3f420476267a4e00f913f84eafdfa20d0b84c3ce /src/randart.cc | |
parent | c21bf1340b495c2cb5bf146a8fa6fc765026b6e2 (diff) |
Remove IDENT_CURSED
We no longer need to track having "identified" whether an item is
cursed separately.
Diffstat (limited to 'src/randart.cc')
-rw-r--r-- | src/randart.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/randart.cc b/src/randart.cc index a902d734..391f9958 100644 --- a/src/randart.cc +++ b/src/randart.cc @@ -294,12 +294,6 @@ bool_ create_artifact(object_type *o_ptr, bool_ a_scroll, bool_ get_name) add_random_ego_flag(o_ptr, ra_ptr->fego, &limit_blows); - /* get flags */ - auto const flags = object_flags(o_ptr); - - /* Hack -- acquire "cursed" flag */ - if (flags & TR_CURSED) o_ptr->ident |= (IDENT_CURSED); - /* Hack -- obtain bonuses */ if (ra_ptr->max_to_h > 0) o_ptr->to_h += randint(ra_ptr->max_to_h); if (ra_ptr->max_to_h < 0) o_ptr->to_h -= randint( -ra_ptr->max_to_h); |