From 6e019117a0152501268ad575a1745dda7972b993 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Sat, 24 Oct 2009 11:50:51 +1000 Subject: Potions/Rings of Invisibility considered useless when backlit, glowing, or surrounded by The Shining One's divine halo. Signed-off-by: Jude Brown Signed-off-by: Charles Otto --- crawl-ref/source/itemname.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/itemname.cc') 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); } -- cgit v1.2.3-54-g00ecf