summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 00:03:54 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 00:03:54 +0000
commit0b0ada3bf7ce381077a96a67baa802f8616c6050 (patch)
treefc86b6eac4aaae3f2f00c807246e18babc66a69e /crawl-ref/source/player.cc
parent9148c89ed594174ac06f167765ca60316f7a1dfc (diff)
downloadcrawl-ref-0b0ada3bf7ce381077a96a67baa802f8616c6050.tar.gz
crawl-ref-0b0ada3bf7ce381077a96a67baa802f8616c6050.zip
Make Trog's Hand cause regeneration even in races that can't heal
naturally (deep dwarves, starving vampires). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9951 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index cd667ba334..972ef52405 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);
}