summaryrefslogtreecommitdiff
path: root/src/cmd6.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commitb15461dbcedf27f28a843f700ce0473d57364230 (patch)
treec8721bdfda19f26f2ae7b2171897a3c4e645100e /src/cmd6.cc
parent0cd5370d552babada63b59003e7629c180d4eeaa (diff)
Remove redundant checks "around" artifact_p()
Turns out artifact_p() already performs the necessary checks.
Diffstat (limited to 'src/cmd6.cc')
-rw-r--r--src/cmd6.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd6.cc b/src/cmd6.cc
index 9c71584b..4bcade91 100644
--- a/src/cmd6.cc
+++ b/src/cmd6.cc
@@ -2739,7 +2739,7 @@ bool_ curse_armor(void)
object_desc(o_name, o_ptr, FALSE, 3);
/* Attempt a saving throw for artifacts */
- if (((o_ptr->art_name) || artifact_p(o_ptr)) && (rand_int(100) < 50))
+ if (artifact_p(o_ptr) && (rand_int(100) < 50))
{
/* Cool */
msg_format("A terrible black aura tries to surround your armour, "
@@ -2801,7 +2801,7 @@ bool_ curse_weapon(void)
object_desc(o_name, o_ptr, FALSE, 3);
/* Attempt a saving throw */
- if ((artifact_p(o_ptr) || o_ptr->art_name) && (rand_int(100) < 50))
+ if (artifact_p(o_ptr) && (rand_int(100) < 50))
{
/* Cool */
msg_format("A terrible black aura tries to surround your weapon, "
@@ -4644,7 +4644,7 @@ bool_ brand_bolts(void)
if (o_ptr->tval != TV_BOLT) continue;
/* Skip artifacts and ego-items */
- if (o_ptr->art_name || artifact_p(o_ptr) || ego_item_p(o_ptr)) continue;
+ if (artifact_p(o_ptr) || ego_item_p(o_ptr)) continue;
/* Skip cursed/broken items */
if (cursed_p(o_ptr)) continue;