diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-11 00:04:57 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-11 00:04:57 +0000 |
commit | 0768b3319fc35714bda5bb15503d2d0d37b5784a (patch) | |
tree | a53fe00ad2571be3ed0168f0a1375fe09a63acf4 | |
parent | 5d4e28d024e7b24c8bafde6367a0d54052e9590f (diff) | |
download | crawl-ref-0768b3319fc35714bda5bb15503d2d0d37b5784a.tar.gz crawl-ref-0768b3319fc35714bda5bb15503d2d0d37b5784a.zip |
Backport trunk r9951 to 0.5.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9952 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/player.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index c47b0de6d2..1014f0b102 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -1086,14 +1086,18 @@ int player_regen() rr += 10; } - // Slow heal mutation. Applied last. - // Each level reduces your natural healing by one third. + // Slow heal mutation. Each level reduces your natural healing by + // one third. if (player_mutation_level(MUT_SLOW_HEALING) > 0) { rr *= 3 - player_mutation_level(MUT_SLOW_HEALING); rr /= 3; } + // Trog's Hand. This overrides all healing reduction above. + if (you.attribute[ATTR_DIVINE_REGENERATION]) + rr = std::max(100, rr); + return (rr); } |