summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 00:25:18 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 00:25:18 +0000
commit297297da01e51a1ba70d3fde8c994ab9bb4f890c (patch)
treeb2dc925c99dda40dd4842aae7fadc77e57115937 /crawl-ref/source/spells3.cc
parent4c9a1ad6cf83954f217ff4570ddf6010c401e803 (diff)
downloadcrawl-ref-297297da01e51a1ba70d3fde8c994ab9bb4f890c.tar.gz
crawl-ref-297297da01e51a1ba70d3fde8c994ab9bb4f890c.zip
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5620 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc40
1 files changed, 20 insertions, 20 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 415f38f39c..07250c2722 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -560,6 +560,25 @@ bool summon_demon_type(monster_type mon, int pow, bool god_gift)
return (success);
}
+bool cast_shadow_creatures(bool god_gift)
+{
+ bool success = false;
+
+ if (create_monster(
+ mgen_data(RANDOM_MONSTER, BEH_FRIENDLY, 2,
+ you.pos(), you.pet_target,
+ god_gift ? MF_GOD_GIFT : 0)) != -1)
+ {
+ success = true;
+
+ mpr("Wisps of shadow whirl around you...");
+ }
+ else
+ canned_msg(MSG_NOTHING_HAPPENS);
+
+ return (success);
+}
+
bool cast_summon_horrible_things(int pow, bool god_gift)
{
if (one_chance_in(3)
@@ -616,7 +635,7 @@ bool cast_summon_horrible_things(int pow, bool god_gift)
if (count > 0)
{
mprf("Some Thing%s answered your call!",
- (count > 1) ? "s" : "");
+ count > 1 ? "s" : "");
return (true);
}
@@ -690,25 +709,6 @@ bool cast_simulacrum(int pow, bool god_gift)
return (false);
}
-bool cast_shadow_creatures(bool god_gift)
-{
- bool success = false;
-
- if (create_monster(
- mgen_data(RANDOM_MONSTER, BEH_FRIENDLY, 2,
- you.pos(), you.pet_target,
- god_gift ? MF_GOD_GIFT : 0)) != -1)
- {
- success = true;
-
- mpr("Wisps of shadow whirl around you...");
- }
- else
- canned_msg(MSG_NOTHING_HAPPENS);
-
- return (success);
-}
-
bool cast_twisted_resurrection(int pow, bool god_gift)
{
if (igrd[you.x_pos][you.y_pos] == NON_ITEM)