summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 1bf82f069e..cbd1242e92 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1600,6 +1600,12 @@ int player_prot_life(bool calc_unid)
// undead/demonic power
pl += you.mutation[MUT_NEGATIVE_ENERGY_RESISTANCE];
+ // TSO's protection
+ if (you.religion == GOD_SHINING_ONE)
+ {
+ pl += you.piety / 50;
+ }
+
if (pl > 3)
pl = 3;