summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 19:37:35 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 19:37:35 +0000
commitc5e23e5f34cef7260911c2b82ebb5708e5a5f9b2 (patch)
tree073c09f1bb79ec8bc66b02fa1017d9bff7d4041f /crawl-ref/source/misc.cc
parentf965ee9d68e6b4d674897117f1711b1d439b3689 (diff)
downloadcrawl-ref-c5e23e5f34cef7260911c2b82ebb5708e5a5f9b2.tar.gz
crawl-ref-c5e23e5f34cef7260911c2b82ebb5708e5a5f9b2.zip
Add one more skeleton change: Allow vampires' bottling blood from
corpses to leave skeletons 25% of the time, as butchering them does. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8176 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 303fef5864..74c8a87898 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -969,6 +969,22 @@ void turn_corpse_into_blood_potions(item_def &item)
_create_monster_hide(mons_class);
}
+void turn_corpse_into_skeleton_and_blood_potions(item_def &item)
+{
+ if (mons_skeleton(item.plus))
+ {
+ int o = get_item_slot();
+ if (o != NON_ITEM)
+ {
+ item_def skel = item;
+ turn_corpse_into_skeleton(skel);
+ copy_item_to_grid(skel, you.pos());
+ }
+ }
+
+ turn_corpse_into_blood_potions(item);
+}
+
// A variation of the mummy curse:
// Instead of trashing the entire stack, split the stack and only turn part
// of it into POT_DECAY.