From 0b0ada3bf7ce381077a96a67baa802f8616c6050 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 11 Jun 2009 00:03:54 +0000 Subject: 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 --- crawl-ref/source/player.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/player.cc') 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); } -- cgit v1.2.3-54-g00ecf