diff options
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 16 |
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. |