summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-15 16:00:34 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-15 16:00:34 +0000
commita9fdbb0f00c69102a08ce24236b4d9a358b6b5f4 (patch)
tree0e11d4054f02f86e18f15e1a66e85d06549b4e1a /crawl-ref/source/skills2.cc
parentd41eb1b2b5ae57c15005250400a0ae3d85b0ad7c (diff)
downloadcrawl-ref-a9fdbb0f00c69102a08ce24236b4d9a358b6b5f4.tar.gz
crawl-ref-a9fdbb0f00c69102a08ce24236b4d9a358b6b5f4.zip
Clean up the non-stacking of Zin's divine boosts and the equivalent
mutations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5055 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index cbdd7309d4..2c8f655f44 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -2110,12 +2110,10 @@ int calc_hp(bool real_hp)
}
}
- // robust mutations and divine robustness don't stack
- 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 + robust - player_mutation_level(MUT_FRAIL));
+ hitp *= (10 + player_mutation_level(MUT_ROBUST)
+ + you.attribute[ATTR_DIVINE_ROBUSTNESS]
+ - player_mutation_level(MUT_FRAIL));
hitp /= 10;
you.hp_max = hitp;