summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-26 12:11:24 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-26 12:11:24 +0000
commitb3df90222267176962658de48c3717dc0aacbab5 (patch)
treebe245f3ccc0f8ddf1209349503efe5ba3b1a1d3c /crawl-ref/source/mstuff2.cc
parentef6e7277f36d2273d29e06fbf2c3b56ae829e860 (diff)
downloadcrawl-ref-b3df90222267176962658de48c3717dc0aacbab5.tar.gz
crawl-ref-b3df90222267176962658de48c3717dc0aacbab5.zip
Added MS_SUMMON_SMALL_MAMMALS, and gave it the appropriate ghosts.
Fixes bug 1563773. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@137 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index 2b2fbf508c..6fb3459120 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -368,8 +368,12 @@ void mons_cast(struct monsters *monster, struct bolt &pbolt, int spell_cast)
switch (spell_cast)
{
+ case MS_SUMMON_SMALL_MAMMALS:
case MS_VAMPIRE_SUMMON:
- sumcount2 = 3 + random2(3) + monster->hit_dice / 5;
+ if ( spell_cast == MS_SUMMON_SMALL_MAMMALS )
+ sumcount2 = 1 + random2(4);
+ else
+ sumcount2 = 3 + random2(3) + monster->hit_dice / 5;
for (sumcount = 0; sumcount < sumcount2; sumcount++)
{
@@ -662,6 +666,7 @@ void setup_mons_cast(struct monsters *monster, struct bolt &pbolt, int spell_cas
// fire_tracer, or beam.
switch (spell_cast)
{
+ case MS_SUMMON_SMALL_MAMMALS:
case MS_VAMPIRE_SUMMON:
case MS_LEVEL_SUMMON: // summon anything appropriate for level
case MS_FAKE_RAKSHASA_SUMMON: