diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-31 05:31:29 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-31 05:31:29 +0000 |
commit | ae03c1a6490a00ed5131041fc584afa5c1418be8 (patch) | |
tree | 724c1cd9cb641464fa9d3e66e553856917acfb85 /crawl-ref/source/monstuff.cc | |
parent | 2d2afbb525495cf1f4b9dcfbbba349138640e992 (diff) | |
download | crawl-ref-ae03c1a6490a00ed5131041fc584afa5c1418be8.tar.gz crawl-ref-ae03c1a6490a00ed5131041fc584afa5c1418be8.zip |
Monsters don't look "lightly wounded" all the time in the monster list.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3971 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 6cf17439f7..2af888019a 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1850,16 +1850,21 @@ void mons_get_damage_level( desc += "heavily "; dam_level = MDAM_HEAVILY_DAMAGED; } - else if (monster->hit_points <= 3 * (monster-> max_hit_points / 4)) + else if (monster->hit_points <= (monster->max_hit_points * 3) / 4) { desc += "moderately "; dam_level = MDAM_MODERATELY_DAMAGED; } - else + else if (monster->hit_points < monster->max_hit_points) { desc += "lightly "; dam_level = MDAM_LIGHTLY_DAMAGED; } + else + { + desc += "not "; + dam_level = MDAM_OKAY; + } desc += _wounded_damaged(monster->type) ? "damaged" : "wounded"; } |