From 297297da01e51a1ba70d3fde8c994ab9bb4f890c Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 9 Jun 2008 00:25:18 +0000 Subject: Add miscellaneous minor fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5620 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'crawl-ref/source/spells3.cc') 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) -- cgit v1.2.3-54-g00ecf