both the raw damage and the experience loss.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3312 c06c8d41-db1a-0410-9941-cceddc491573
4JBNKOYI3VP6BFGDB2QBPMCJ6XLZMGKD5NJDY5IJS6XVHU523GHQC
if (protection > 0)
// TSO's protection
if (you.religion == GOD_SHINING_ONE && you.piety > protection * 50)
{
unsigned long undrained = (you.piety * exp_drained) / 150;
if (undrained > exp_drained)
undrained = exp_drained;
if (undrained > 0)
{
simple_god_message(" protects your life force!");
exp_drained -= undrained;
}
}
else if (protection > 0)
if (you.piety >= 50)
{
const char *how = (you.piety >= 150) ? "carefully" : // l.p. 3
(you.piety >= 100) ? "often" :
"sometimes";
const char *how = (you.piety >= 150) ? "carefully" : // l.p. 3
(you.piety >= 100) ? "often" :
(you.piety >= 50) ? "sometimes" :
"occasionally";