From 48e04ad11d08017601106277ecd345fc2f53d7d4 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 18 Jun 2008 21:55:27 +0000 Subject: Unknown potions are still useless for mummies. [1994979] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5964 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemname.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 9fa9e05cc6..ca737c6d78 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -2387,9 +2387,6 @@ bool is_useless_item(const item_def &item, bool temp) case OBJ_POTIONS: { - if (!item_type_known(item)) - return (false); - // No potion is useless if it can be used for Evaporate. if (player_knows_spell(SPELL_EVAPORATE)) return (false); @@ -2398,6 +2395,9 @@ bool is_useless_item(const item_def &item, bool temp) if (you.species == SP_MUMMY) return (true); + if (!item_type_known(item)) + return (false); + switch (item.sub_type) { case POT_BERSERK_RAGE: -- cgit v1.2.3-54-g00ecf