summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 22:57:30 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 22:57:30 +0000
commitf765ccf4dcb5d740a54c7ab446eebf81fbdf6a46 (patch)
treea7166274873f196d0f8aac7d5400dff20d02a0d1 /crawl-ref/source/spells2.cc
parent764e6d61ac825e6018816541e777f723d500635c (diff)
downloadcrawl-ref-f765ccf4dcb5d740a54c7ab446eebf81fbdf6a46.tar.gz
crawl-ref-f765ccf4dcb5d740a54c7ab446eebf81fbdf6a46.zip
Add a few more message tweaks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5677 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc24
1 files changed, 11 insertions, 13 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 5179e4d245..729a062cdd 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1268,11 +1268,6 @@ bool cast_summon_scorpions(int pow, bool god_gift)
god_gift ? MG_GOD_GIFT : 0)) != -1)
{
success = true;
-
- mpr("A scorpion appears.");
-
- if (!friendly)
- mpr("It doesn't look very happy.");
}
}
@@ -1872,7 +1867,7 @@ bool summon_berserker(int pow, bool god_gift, bool force_hostile)
}
static bool _summon_holy_being_wrapper(int pow, bool god_gift,
- monster_type mon)
+ monster_type mon, bool quiet)
{
bool success = false;
@@ -1891,9 +1886,12 @@ static bool _summon_holy_being_wrapper(int pow, bool god_gift,
monsters *summon = &menv[monster];
summon->flags |= MF_ATT_CHANGE_ATTEMPT;
- mprf("You are momentarily dazzled by a brilliant %s light.",
- (mon == MONS_DAEVA) ? "golden"
- : "white");
+ if (!quiet)
+ {
+ mprf("You are momentarily dazzled by a brilliant %s light.",
+ (mon == MONS_DAEVA) ? "golden"
+ : "white");
+ }
player_angers_monster(&menv[monster]);
}
@@ -1902,13 +1900,13 @@ static bool _summon_holy_being_wrapper(int pow, bool god_gift,
}
// Zin sends an angel for a follower.
-bool summon_guardian(int pow, bool god_gift)
+bool summon_guardian(int pow, bool god_gift, bool quiet)
{
- return _summon_holy_being_wrapper(pow, god_gift, MONS_ANGEL);
+ return _summon_holy_being_wrapper(pow, god_gift, MONS_ANGEL, quiet);
}
// TSO sends a daeva for a follower.
-bool summon_daeva(int pow, bool god_gift)
+bool summon_daeva(int pow, bool god_gift, bool quiet)
{
- return _summon_holy_being_wrapper(pow, god_gift, MONS_DAEVA);
+ return _summon_holy_being_wrapper(pow, god_gift, MONS_DAEVA, quiet);
}