summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-26 20:21:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-26 20:21:02 +0000
commit3cfe89ce027c008e6fe651b79171afa5da78cd85 (patch)
tree2144e4b9ebf175f54ed9afb3f604d61bcaba0514 /crawl-ref/source/itemname.cc
parent3df2c03fc7434ef10dc8608617425c0969d18916 (diff)
downloadcrawl-ref-3cfe89ce027c008e6fe651b79171afa5da78cd85.tar.gz
crawl-ref-3cfe89ce027c008e6fe651b79171afa5da78cd85.zip
Fix "suicidal travelling" towards monsters you can see through glass.
Fix =sustenance not being treated as useless for Mummies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7982 c06c8d41-db1a-0410-9941-cceddc491573
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 0f74bd14cb..bd5149d314 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -2471,8 +2471,8 @@ bool is_useless_item(const item_def &item, bool temp)
case RING_REGENERATION:
case RING_SUSTENANCE:
return (you.is_undead
- && (!temp || you.species == SP_VAMPIRE
- && you.hunger_state == HS_STARVING));
+ && (you.species != SP_VAMPIRE
+ || temp && you.hunger_state == HS_STARVING));
case RING_SEE_INVISIBLE:
return (player_mutation_level(MUT_ACUTE_VISION));