summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ability.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-11 18:21:53 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-11 18:21:53 -0600
commit18cf5c4f68b942b9a1b54804906d8fe5dabb3e08 (patch)
tree57e80071c4258739119d1c60e17d467acf2e3a37 /crawl-ref/source/ability.cc
parent4b3306195a4029724f942a79c0d8efd24579a810 (diff)
downloadcrawl-ref-18cf5c4f68b942b9a1b54804906d8fe5dabb3e08.tar.gz
crawl-ref-18cf5c4f68b942b9a1b54804906d8fe5dabb3e08.zip
Don't spam some "unable to use ability" messages in local tiles (#8524).
Whoops.
Diffstat (limited to 'crawl-ref/source/ability.cc')
-rw-r--r--crawl-ref/source/ability.cc19
1 files changed, 11 insertions, 8 deletions
diff --git a/crawl-ref/source/ability.cc b/crawl-ref/source/ability.cc
index 7e98ed7065..c7693f1e86 100644
--- a/crawl-ref/source/ability.cc
+++ b/crawl-ref/source/ability.cc
@@ -1617,17 +1617,20 @@ static bool _check_ability_possible(const ability_def& abil,
return true;
case ABIL_FEDHAS_EVOLUTION:
- return fedhas_check_evolve_flora();
+ return fedhas_check_evolve_flora(quiet);
case ABIL_FEDHAS_SPAWN_SPORES:
{
- const int retval = fedhas_check_corpse_spores();
+ const int retval = fedhas_check_corpse_spores(quiet);
if (retval <= 0)
{
- if (retval == 0)
- mpr("No corpses are in range.");
- else
- canned_msg(MSG_OK);
+ if (!quiet)
+ {
+ if (retval == 0)
+ mpr("No corpses are in range.");
+ else
+ canned_msg(MSG_OK);
+ }
return false;
}
return true;
@@ -1681,10 +1684,10 @@ static bool _check_ability_possible(const ability_def& abil,
return true;
case ABIL_GOZAG_POTION_PETITION:
- return gozag_setup_potion_petition();
+ return gozag_setup_potion_petition(quiet);
case ABIL_GOZAG_CALL_MERCHANT:
- return gozag_setup_call_merchant();
+ return gozag_setup_call_merchant(quiet);
default:
return true;