summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 18:04:54 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 18:04:54 +0000
commitab17d3586c568a0d6eaf9569ed2a1cc793d85c6e (patch)
tree235202597a714b4b32a1092698480c092d0d5cd0 /crawl-ref/source/spells3.cc
parent71c477015d777e6a7d893475639e935f0d213f70 (diff)
downloadcrawl-ref-ab17d3586c568a0d6eaf9569ed2a1cc793d85c6e.tar.gz
crawl-ref-ab17d3586c568a0d6eaf9569ed2a1cc793d85c6e.zip
Consolidate the shadow-summoning routines.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5664 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 99f8513791..f45f368fe0 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -413,6 +413,16 @@ bool cast_sublimation_of_blood(int pow)
return (success);
}
+bool summon_shadow(bool god_gift, bool force_hostile)
+{
+ return (create_monster(
+ mgen_data(MONS_SHADOW,
+ !force_hostile ? BEH_FRIENDLY : BEH_HOSTILE,
+ 2, you.pos(),
+ !force_hostile ? you.pet_target : MHITYOU,
+ (god_gift ? MG_GOD_GIFT : 0))) != -1);
+}
+
bool cast_call_imp(int pow, bool god_gift)
{
bool success = false;