diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-10 01:40:41 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-10 01:40:41 +0000 |
commit | 714a1818fbda913018df4c28c03e7dc563150942 (patch) | |
tree | df7348ca86555ea97c0ed03948d2fe10c440bed4 /crawl-ref | |
parent | 24f9798b08e8f2e2145d9602b2ad21b8212c9ebd (diff) | |
download | crawl-ref-714a1818fbda913018df4c28c03e7dc563150942.tar.gz crawl-ref-714a1818fbda913018df4c28c03e7dc563150942.zip |
Add another message tweak.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5681 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/it_use3.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/spells3.cc | 10 | ||||
-rw-r--r-- | crawl-ref/source/spells3.h | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc index 17edf91884..ca17d526fe 100644 --- a/crawl-ref/source/it_use3.cc +++ b/crawl-ref/source/it_use3.cc @@ -225,7 +225,7 @@ void special_wielded() case SPWLD_SHADOW: if (random2(8) <= player_spec_death()) { - summon_shadows(0); + summon_shadows(0, false, false, true); did_god_conduct(DID_NECROMANCY, 1); } diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index f972ac6956..de4fb55810 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -413,15 +413,19 @@ bool cast_sublimation_of_blood(int pow) return (success); } -bool summon_shadows(int pow, bool god_gift, bool force_hostile) +bool summon_shadows(int pow, bool god_gift, bool force_hostile, + bool quiet) { bool success = false; // Maximum power is 300 (11 shadows). const int how_many = (pow / 30 + 1); - mpr(how_many > 1 ? "Flickering shadows surround you." - : "A nearby shadow flickers."); + if (!quiet) + { + mpr(how_many > 1 ? "Flickering shadows surround you." + : "A nearby shadow flickers."); + } for (int i = 0; i < how_many; ++i) { diff --git a/crawl-ref/source/spells3.h b/crawl-ref/source/spells3.h index 9674027ffa..0c6124ded5 100644 --- a/crawl-ref/source/spells3.h +++ b/crawl-ref/source/spells3.h @@ -113,7 +113,8 @@ bool remove_curse(bool suppress_msg); * *********************************************************************** */ bool cast_sublimation_of_blood(int pow); -bool summon_shadows(int pow, bool god_gift = false, bool force_hostile = false); +bool summon_shadows(int pow, bool god_gift = false, bool force_hostile = false, + bool quiet = false); bool cast_call_imp(int pow, bool god_gift = false); bool summon_lesser_demon(int pow, bool god_gift = false, bool quiet = false); bool summon_common_demon(int pow, bool god_gift = false, bool quiet = false); |