summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-10-24 17:50:24 +0200
committerAdam Borowski <kilobyte@angband.pl>2009-10-24 17:50:24 +0200
commit4df36849b8db18c0845e8dc8225c29fbb4b790f8 (patch)
tree52e6b43eaaa376bfd6656b4b17875e6c8bf48664 /crawl-ref/source/itemname.cc
parentde5e67bd99e2581364122bb6bc6d8b35f90afc54 (diff)
downloadcrawl-ref-4df36849b8db18c0845e8dc8225c29fbb4b790f8.tar.gz
crawl-ref-4df36849b8db18c0845e8dc8225c29fbb4b790f8.zip
Corona/glow makes invisibility only temporarily useless, unlike TSO's halo.
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 2b99f39f1d..17a499f1e0 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2609,7 +2609,7 @@ bool is_useless_item(const item_def &item, bool temp)
case POT_INVISIBILITY:
// If you're Corona'd or a TSO-ite, this is always useless.
- return (you.backlit(true));
+ return (temp ? you.backlit(true) : you.haloed());
}
return (false);
@@ -2669,7 +2669,7 @@ bool is_useless_item(const item_def &item, bool temp)
return (player_control_teleport(true, temp, false));
case RING_INVISIBILITY:
- return (you.backlit(true));
+ return (temp && you.backlit(true));
default:
return (false);