From cc6e8a31098fa2a0b1a1634c98a7422686d7816d Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 14 Mar 2009 23:04:25 +0000 Subject: Add more miscellaneous minor fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9483 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index f356f34e4c..8ee9e5e357 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -564,6 +564,7 @@ bool cast_shadow_creatures(god_type god) } player_angers_monster(&menv[monster]); + return (true); } @@ -1006,25 +1007,23 @@ bool cast_simulacrum(int pow, god_type god) for (int i = 0; i < how_many; ++i) { - if (create_monster( + const int monster = + create_monster( mgen_data(MONS_SIMULACRUM_SMALL, BEH_FRIENDLY, 6, SPELL_SIMULACRUM, you.pos(), MHITYOU, - 0, god, mon)) != -1) + 0, god, mon)); + + if (monster != -1) { count++; + + player_angers_monster(&menv[monster]); } } - if (count > 0) - { - mprf("%s icy figure%s form%s before you!", - count > 1 ? "Some" : "An", count > 1 ? "s" : "", - count > 1 ? "" : "s"); - rc = true; - } - else - mpr("You feel cold for a second."); + if (count == 0) + canned_msg(MSG_NOTHING_HAPPENS); } else { -- cgit v1.2.3-54-g00ecf