diff options
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index 2c8f655f44..e4bce9eceb 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -2110,10 +2110,12 @@ int calc_hp(bool real_hp) } } + // limit combined robust mutations and divine robustness to 3 + const int robust = std::min(player_mutation_level(MUT_ROBUST) + + you.attribute[ATTR_DIVINE_ROBUSTNESS], 3); + // frail and robust mutations, and divine robustness - hitp *= (10 + player_mutation_level(MUT_ROBUST) - + you.attribute[ATTR_DIVINE_ROBUSTNESS] - - player_mutation_level(MUT_FRAIL)); + hitp *= (10 + robust - player_mutation_level(MUT_FRAIL)); hitp /= 10; you.hp_max = hitp; |