summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-10 02:08:13 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-10 02:08:13 +0000
commit30e8a7cd13aae0c629e7e2110313c5722c2f03f9 (patch)
tree510e6787f070d5db8bce26cf6bce9089b115ed8a /crawl-ref/source/spl-cast.cc
parent028b5562912b8daa5124bfb801874151241b8f2a (diff)
downloadcrawl-ref-30e8a7cd13aae0c629e7e2110313c5722c2f03f9.tar.gz
crawl-ref-30e8a7cd13aae0c629e7e2110313c5722c2f03f9.zip
Remove the shadow summoning function. After some thought, it seems like
overkill right now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5683 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc20
1 files changed, 18 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 44d7ad56c4..544b7ebfa7 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -2851,9 +2851,25 @@ static void _miscast_necromancy(int severity, const char* cause)
switch (random2(3))
{
case 0:
- // Summon 1-3 shadows.
- summon_shadows(random2(61), god_gift, true);
+ {
+ bool success = false;
+
+ for (int i = random2(3); i >= 0; --i)
+ {
+ if (create_monster(
+ mgen_data::alert_hostile_at(MONS_SHADOW,
+ you.pos(), 2, flags)) != -1)
+ {
+ success = true;
+ }
+ }
+
+ if (success)
+ mpr("Flickering shadows surround you.");
+ else
+ canned_msg(MSG_NOTHING_HAPPENS);
break;
+ }
case 1:
if (!player_prot_life() && one_chance_in(3))