diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-16 09:36:33 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-16 09:36:33 +0000 |
commit | d6cae0bdfb7d08c490fb698180da56416965b85d (patch) | |
tree | ac4376aacb64639c6285b636a357f15a3543032f /crawl-ref/source/fight.cc | |
parent | cfd996c44458c4a6c8796ad73bf5c78a193c4ea4 (diff) | |
download | crawl-ref-d6cae0bdfb7d08c490fb698180da56416965b85d.tar.gz crawl-ref-d6cae0bdfb7d08c490fb698180da56416965b85d.zip |
Reduce exclamation point overdose for monster attacks.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1045 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 146130a54e..7b46f788d3 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -834,14 +834,21 @@ std::string melee_attack::special_attack_punctuation() std::string melee_attack::attack_strength_punctuation() { - if (damage_done < HIT_WEAK) - return "."; - else if (damage_done < HIT_MED) - return "!"; - else if (damage_done < HIT_STRONG) - return "!!"; + if (attacker->atype() == ACT_PLAYER) + { + if (damage_done < HIT_WEAK) + return "."; + else if (damage_done < HIT_MED) + return "!"; + else if (damage_done < HIT_STRONG) + return "!!"; + else + return "!!!"; + } else - return "!!!"; + { + return (damage_done < HIT_WEAK? "." : "!"); + } } void melee_attack::player_announce_hit() |