summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-06-10 22:27:53 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-06-10 22:27:53 -0700
commit68c895d1a1069da241010b02e9e0de3683746f42 (patch)
treeecc26970f96958aae5fc8d702e72ef2e74a232ce /crawl-ref/source/actor.cc
parent627f52b43aba3010ce978028d75f7fd79d240424 (diff)
downloadcrawl-ref-68c895d1a1069da241010b02e9e0de3683746f42.tar.gz
crawl-ref-68c895d1a1069da241010b02e9e0de3683746f42.zip
Turn 'exclams' into ex-clams!
Diffstat (limited to 'crawl-ref/source/actor.cc')
-rw-r--r--crawl-ref/source/actor.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/actor.cc b/crawl-ref/source/actor.cc
index 1e7a272f89..1ac6193d80 100644
--- a/crawl-ref/source/actor.cc
+++ b/crawl-ref/source/actor.cc
@@ -686,25 +686,25 @@ void actor::handle_constriction()
damage = defender->hurt(this, damage, BEAM_MISSILE, false);
DIAG_ONLY(const int infdam = damage);
- string exclams;
+ string exclamations;
if (damage <= 0 && is_player()
&& you.can_see(defender))
{
- exclams = ", but do no damage.";
+ exclamations = ", but do no damage.";
}
else if (damage < HIT_WEAK)
- exclams = ".";
+ exclamations = ".";
else if (damage < HIT_MED)
- exclams = "!";
+ exclamations = "!";
else if (damage < HIT_STRONG)
- exclams = "!!";
+ exclamations = "!!";
else
{
int tmpdamage = damage;
- exclams = "!!!";
+ exclamations = "!!!";
while (tmpdamage >= 2*HIT_STRONG)
{
- exclams += "!";
+ exclamations += "!";
tmpdamage >>= 1;
}
}
@@ -721,7 +721,7 @@ void actor::handle_constriction()
#else
"",
#endif
- exclams.c_str());
+ exclamations.c_str());
}
else if (you.can_see(defender) || defender->is_player())
{
@@ -733,7 +733,7 @@ void actor::handle_constriction()
#else
"",
#endif
- exclams.c_str());
+ exclamations.c_str());
}
dprf("constrict at: %s df: %s base %d dur %d ac %d tsc %d inf %d",