summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 09:23:54 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-11 09:23:54 +0000
commitdb099817902be676726cfa019a85aa0b685ee877 (patch)
treee32629a9a64120b19c6e78206f27bb77881fd366 /crawl-ref/source/player.cc
parenta83003cc352db2c464b62d6a653152ba05838633 (diff)
downloadcrawl-ref-db099817902be676726cfa019a85aa0b685ee877.tar.gz
crawl-ref-db099817902be676726cfa019a85aa0b685ee877.zip
* Rename CREDITS -> CREDITS.txt
* Change Trog's Hand to rr += 100. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9957 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 643da199f0..8d98d8dcb3 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1050,8 +1050,11 @@ int player_regen()
rr += 40 * player_equip(EQ_RINGS, RING_REGENERATION);
// Spell.
- if (you.duration[DUR_REGENERATION])
+ if (you.duration[DUR_REGENERATION]
+ && !you.attribute[ATTR_DIVINE_REGENERATION])
+ {
rr += 100;
+ }
// Troll leather (except for trolls).
if (player_equip(EQ_BODY_ARMOUR, ARM_TROLL_LEATHER_ARMOUR)
@@ -1093,9 +1096,9 @@ int player_regen()
rr /= 3;
}
- // Trog's Hand. This overrides everything above.
+ // Trog's Hand. This overrides the slow healing effect.
if (you.attribute[ATTR_DIVINE_REGENERATION])
- rr = 100;
+ rr += 100;
return (rr);
}