summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-07-23 05:03:43 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-07-23 07:05:21 +0100
commit603939af70ec593653f9cd693764068f71aef34b (patch)
treeb91f80e2c9739e8cc7c6ea6bf737cc21e4643e91 /crawl-ref/source/itemname.cc
parentb62d1063ba2c848a43ec9d01fa300eeb48055f6d (diff)
downloadcrawl-ref-603939af70ec593653f9cd693764068f71aef34b.tar.gz
crawl-ref-603939af70ec593653f9cd693764068f71aef34b.zip
Make Sublimation of Blood only effective when cast on the player
Having a spell work in two completely different ways depending on context is unintuitive, and self-casting it is the much more interesting use. Makes the spell unmemorisable for species without blood (Gargoyle, Ghoul, Mummy). Species that can't bleed get both level 1 spells from the first Kiku gift. Has some ugly duplication of lists of species that can't bleed, because using player::can_bleed won't correctly handle statue- or lich- formed players even with allow_tran = false, due to them changing the player's holiness.
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 707a0d83c3..392ac6d5ee 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -3332,10 +3332,6 @@ bool is_useless_item(const item_def &item, bool temp)
case OBJ_POTIONS:
{
- // Not useless, even if you can't quaff it.
- if (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD) && is_blood_potion(item))
- return false;
-
// Mummies can't use potions.
if (you.species == SP_MUMMY)
return true;
@@ -3497,8 +3493,7 @@ bool is_useless_item(const item_def &item, bool temp)
return false;
if (item.sub_type == FOOD_CHUNK
- && (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD)
- || !temp && you.form == TRAN_LICH))
+ && !temp && you.form == TRAN_LICH)
{
return false;
}
@@ -3521,9 +3516,6 @@ bool is_useless_item(const item_def &item, bool temp)
return false;
}
- if (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD))
- return false;
-
return true;
case OBJ_MISCELLANY: