diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-22 17:09:50 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-22 17:09:50 +0000 |
commit | 5c9c62b76e476006251428e218a60cf55868f7b6 (patch) | |
tree | c5d9d43f144bb9ee35e7b57e3cb9ff74fbeb5d5c /crawl-ref/source/item_use.cc | |
parent | 777a73ad04947a2e4a39d8b126d16e7107be58af (diff) | |
download | crawl-ref-5c9c62b76e476006251428e218a60cf55868f7b6.tar.gz crawl-ref-5c9c62b76e476006251428e218a60cf55868f7b6.zip |
In enchant_armour(), respect the quiet parameter in all cases.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3810 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 31c4582633..2bc815bccf 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -3922,7 +3922,8 @@ bool enchant_armour( int &ac_change, bool quiet, item_def &arm ) // cannot be enchanted nor uncursed if (!is_enchantable_armour(arm, true)) { - canned_msg( MSG_NOTHING_HAPPENS ); + if (!quiet) + canned_msg( MSG_NOTHING_HAPPENS ); return (false); } @@ -3933,8 +3934,11 @@ bool enchant_armour( int &ac_change, bool quiet, item_def &arm ) // not change into a form of armour with a different evasion modifier. if (armour_is_hide(arm, false)) { - mprf("%s glows purple and changes!", - arm.name(DESC_CAP_YOUR).c_str()); + if (!quiet) + { + mprf("%s glows purple and changes!", + arm.name(DESC_CAP_YOUR).c_str()); + } ac_change = arm.plus; hide2armour(arm); @@ -3964,7 +3968,8 @@ bool enchant_armour( int &ac_change, bool quiet, item_def &arm ) } else { - canned_msg( MSG_NOTHING_HAPPENS ); + if (!quiet) + canned_msg( MSG_NOTHING_HAPPENS ); return (false); } } |