summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";
}