diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-18 21:55:27 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-18 21:55:27 +0000 |
commit | 48e04ad11d08017601106277ecd345fc2f53d7d4 (patch) | |
tree | ad52d50fb0c26a98ea4c58f581a1416c0adca9d3 /crawl-ref/source/itemname.cc | |
parent | 57880a7aab2b93929895ca8acabba2488461c8a4 (diff) | |
download | crawl-ref-48e04ad11d08017601106277ecd345fc2f53d7d4.tar.gz crawl-ref-48e04ad11d08017601106277ecd345fc2f53d7d4.zip |
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
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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: |