summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-06-09 12:25:26 -0400
committerNeil Moore <neil@s-z.org>2014-06-09 12:38:13 -0400
commit3b29f72d670d9e01ce1794679a6f86bc44debc72 (patch)
treea09ed995b1a714964a1d64a588b1ba4d5029ad9d /crawl-ref/source/item_use.cc
parent9704825b45559350f541c90b30445c14e84f8abc (diff)
downloadcrawl-ref-3b29f72d670d9e01ce1794679a6f86bc44debc72.tar.gz
crawl-ref-3b29f72d670d9e01ce1794679a6f86bc44debc72.zip
Remove vestiges of Simulacrum-chunk interactions.
Wieldability, usefulness of butchery and chunks, tile wield tip, and monster food pickup.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc18
1 files changed, 5 insertions, 13 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 33ccb37e1f..4284170f09 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -254,20 +254,12 @@ static bool _valid_weapon_swap(const item_def &item)
if (item_is_snakable(item) && you.has_spell(SPELL_STICKS_TO_SNAKES))
return true;
- // What follows pertains only to Sublimation of Blood and/or Simulacrum.
- if (!you.has_spell(SPELL_SUBLIMATION_OF_BLOOD)
- && !you.has_spell(SPELL_SIMULACRUM))
+ if (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD))
{
- return false;
- }
-
- if (item.base_type == OBJ_FOOD && food_is_meaty(item))
- return item.sub_type == FOOD_CHUNK || you.has_spell(SPELL_SIMULACRUM);
-
- if (item.base_type == OBJ_POTIONS && item_type_known(item)
- && you.has_spell(SPELL_SUBLIMATION_OF_BLOOD))
- {
- return is_blood_potion(item);
+ if (item.base_type == OBJ_FOOD && item.sub_type == FOOD_CHUNK)
+ return true;
+ if (is_blood_potion(item))
+ return true;
}
return false;