summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 8200182f4d..d87c786bb8 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2606,6 +2606,10 @@ bool is_useless_item(const item_def &item, bool temp)
// Spriggans could argue, but it's too small gain for possible
// player confusion.
return (player_res_poison(false));
+
+ case POT_INVISIBILITY:
+ // If you're Corona'd or a TSO-ite, this is always useless.
+ return (you.backlit(true));
}
return (false);
@@ -2664,6 +2668,9 @@ bool is_useless_item(const item_def &item, bool temp)
case RING_TELEPORT_CONTROL:
return (player_control_teleport(true, temp, false));
+ case RING_INVISIBILITY:
+ return (you.backlit(true));
+
default:
return (false);
}