Donating money will now also affect penance (along with special messages). I just used gain_piety(1) for this - the downside is that now it also respects the slower piety growth of the actual piety gain only happening in 66% (piety > 100) or 33% (piety > 150) of piety leaking in (and out of the pool!)
Zin will provide sustenance even under penance, and Recite trains Invocations now.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3383 c06c8d41-db1a-0410-9941-cceddc491573
C2VJXKTIPFZ34C6L6FNCDAGEI7NLTKUXTNB7RN4EYAJCALULIBMQC
72CQFK27NR37P2WQ32U4PEXXKMRIO7JEMJN2ZCPNVPZMT7UPFJJAC
23PFLB2E4QHL5SF3Q2YV5FXRH6MFHENEU2ACVC572ZCYDXCBZVQAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
EI5XQIKW3OBVTDVT2A4Q535I5FOVEKARLFISM457IHGAK7TVOMVAC
AWQUXQX5BRXB6RCUHUXQE4HRCZTOYPPZTRNT3D7ZIDD72RFUZ2OQC
DK362IHKSDADMUPD35NOTKM4WESQM37KG2PNOJRV2FGELDWULYPQC
std::string result = god_name(GOD_ZIN) + " will soon be ";
you.duration[DUR_PIETY_POOL] += donation_value;
if (you.duration[DUR_PIETY_POOL] > 500)
you.duration[DUR_PIETY_POOL] = 500;
if (you.penance[GOD_ZIN])
{
if (estimated_piety >= you.penance[GOD_ZIN])
mpr("You feel that soon you will be absolved of all your sins.");
else
mpr("You feel that soon your burden of sins will be lighter.");
return;
}
std::string result = "You feel that " + god_name(GOD_ZIN)
+ " will soon be ";
mpr("Piety increases by 1 due to piety pool.", MSGCH_DIAGNOSTICS);
#endif
you.piety++;
}
#if DEBUG_DIAGNOSTICS || DEBUG_SACRIFICE || DEBUG_PIETY
else
mpr("Piety already at maximum and fails to increase "
"from piety pool.", MSGCH_DIAGNOSTICS);
mpr("Piety increases by 1 due to piety pool.", MSGCH_DIAGNOSTICS);