diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-27 07:48:30 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-27 07:50:38 -0400 |
commit | 4ad890b147685244cbb09dd524fbfbb6032b3ca0 (patch) | |
tree | 957ec1b7f40eb56822e8b0b0de630a1303c05606 /crawl-ref/source/spl-summoning.cc | |
parent | 3f6e43b74e5ed6f139ef1103df8666031a5f6a31 (diff) | |
download | crawl-ref-4ad890b147685244cbb09dd524fbfbb6032b3ca0.tar.gz crawl-ref-4ad890b147685244cbb09dd524fbfbb6032b3ca0.zip |
Revert "Don't waste time casting Animate Dead, usually."
Because it's very common that corpses will be hidden by items above
them, especially now that that's guaranteed if there are any items
above them, the 'z' behaviour it made was too restrictive.
This reverts commit f040398a199a9f2bda755c0802287558edecba2e.
Diffstat (limited to 'crawl-ref/source/spl-summoning.cc')
-rw-r--r-- | crawl-ref/source/spl-summoning.cc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/crawl-ref/source/spl-summoning.cc b/crawl-ref/source/spl-summoning.cc index bb7137d536..2e932938be 100644 --- a/crawl-ref/source/spl-summoning.cc +++ b/crawl-ref/source/spl-summoning.cc @@ -50,7 +50,6 @@ #include "shout.h" #include "spl-util.h" #include "spl-zap.h" -#include "stash.h" #include "state.h" #include "stuff.h" #include "teleport.h" @@ -1390,22 +1389,6 @@ static bool _animatable_remains(const item_def& item) || mons_skeleton(item.mon_type)); } -bool can_see_animatable_remains() -{ - for (radius_iterator ri(you.pos(), LOS_NO_TRANS); ri; ++ri) - { - const int oid = you.visible_igrd(*ri); - if (oid == NON_ITEM) - continue; - - vector<item_def> items = item_list_in_stash(*ri); - for (unsigned int i = 0; i < items.size(); ++i) - if (_animatable_remains(items[i])) - return true; - } - return false; -} - // Try to equip the skeleton/zombie with the objects it died with. This // excludes holy items, items which were dropped by the player onto the // corpse, and corpses which were picked up and moved by the player, so |