diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-06-15 21:47:20 +0100 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-06-15 23:09:58 +0100 |
commit | 9e5d6a67c252e215624cf0dd497e279a8fbb44cd (patch) | |
tree | 02743a5fa5ab85c0a2967d4fecc799a5cccb572f /crawl-ref/source/item_use.cc | |
parent | ebcb40d1551dc66f395d4f27e1e50b3d1962d0d3 (diff) | |
download | crawl-ref-9e5d6a67c252e215624cf0dd497e279a8fbb44cd.tar.gz crawl-ref-9e5d6a67c252e215624cf0dd497e279a8fbb44cd.zip |
Fix messaging when enchanting weapons via god blessing
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 1d0cea94f9..cf6aa338e3 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2320,7 +2320,7 @@ static bool _handle_brand_weapon(bool alreadyknown, string *pre_msg) return true; } -bool enchant_weapon(item_def &wpn) +bool enchant_weapon(item_def &wpn, bool quiet) { bool success = false; @@ -2335,7 +2335,8 @@ bool enchant_weapon(item_def &wpn) { wpn.plus++; success = true; - mprf("%s glows red for a moment.", iname.c_str()); + if (!quiet) + mprf("%s glows red for a moment.", iname.c_str()); } if (wpn.cursed()) @@ -2347,7 +2348,7 @@ bool enchant_weapon(item_def &wpn) } } - if (!success) + if (!success && !quiet) mprf("%s very briefly gains a red sheen.", iname.c_str()); if (success) @@ -2433,7 +2434,7 @@ static bool _handle_enchant_weapon(bool alreadyknown, string *pre_msg) if (!weapon) return !alreadyknown; - enchant_weapon(*weapon); + enchant_weapon(*weapon, false); return true; } |