diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-10-24 11:50:51 +1000 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-10-23 22:03:34 -0400 |
commit | 6e019117a0152501268ad575a1745dda7972b993 (patch) | |
tree | 7f806f98de2de47f4d459cfa203774fdf7fd5bed /crawl-ref/source/itemname.cc | |
parent | f98ae79c4b2a6409cbc03e5fc48611603d37b2a0 (diff) | |
download | crawl-ref-6e019117a0152501268ad575a1745dda7972b993.tar.gz crawl-ref-6e019117a0152501268ad575a1745dda7972b993.zip |
Potions/Rings of Invisibility considered useless when backlit, glowing, or surrounded by The Shining One's divine halo.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Signed-off-by: Charles Otto <ottochar@gmail.com>
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 7 |
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); } |