summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-31 05:31:29 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-31 05:31:29 +0000
commitae03c1a6490a00ed5131041fc584afa5c1418be8 (patch)
tree724c1cd9cb641464fa9d3e66e553856917acfb85 /crawl-ref/source/monstuff.cc
parent2d2afbb525495cf1f4b9dcfbbba349138640e992 (diff)
downloadcrawl-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.cc9
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";
}