git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2892 c06c8d41-db1a-0410-9941-cceddc491573
RLN5WLM2K5U6QBIBWBLK5XTDD3MPPXXXOVPUT33JKOQF3PHF6WZQC
L4UCVNVRFTHENDKDOY6X75LXIE2B7XIMSKGVKHBOXNID7RDTBQRAC
264FLET5STFALEWUDOEFCR273Y5CY2WZDHL56WHZUAQ635RUN6MAC
XUCCWGMXKPIR34BBCCOI67YHI3RST4STDWSDUZTN4B2CJWXQLQ7AC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
6L4EP4ZRWWYLT55PD5KTTJON5J2JB5VV5MWNHF5VPZQZ5BKEYZ4QC
JW2KRJHES33W7UTWZ6NDO4TLMK4EFU4HKZXBWR2UJOMPCCOTR4CQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
DO7HV6DH42CT3X6QM4ZHOBEIXZ6X2IEGXXHXIBPCCBLRMB47BKBQC
// mv: these gods protects you during your prayer (not mentioning XOM)
// chance for doing so is (random2(you.piety) >= 30)
// mv: some gods can protect you from harm
// The chance for doing so is:
// one_chance_in(10) || you.piety > random2(1000)
if ((which_god == GOD_ZIN
|| which_god == GOD_SHINING_ONE
|| which_god == GOD_ELYVILON
|| which_god == GOD_YREDELEMNUL)
&& you.piety >= 30)
if (god_protects_from_harm(which_god))
cprintf( "%s %s watches over you during prayer." EOL,
god_name(which_god),
(you.piety >= 150) ? "carefully": // > 4/5
(you.piety >= 90) ? "often" : // > 2/3
"sometimes"); // less than 2:3
cprintf( "%s %s watches over you." EOL, god_name(which_god),
(you.piety >= 150) ? "carefully":
(you.piety >= 90) ? "often" :
(you.piety >= 30) ? "sometimes" :
"occasionally");
}
if (which_god == GOD_ZIN)
{
cprintf("Praying to %s will provide sustenance if starving."
EOL, god_name(which_god));
}
if (which_god == GOD_ZIN && you.piety >= 30)
{
have_any = true;
cprintf("Praying to %s will provide sustenance if starving."
EOL, god_name(which_god));