(Resulting from the mysterious FR 1892989.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3440 c06c8d41-db1a-0410-9941-cceddc491573
MC5GWSF6I7TGB422CBRCP6IPX5SV36OX4LAXEE33C65GKCDI64IQC
(interestingness > 75) ? message_array[3] :
(interestingness > 50) ? message_array[2] :
(interestingness > 25) ? message_array[1] :
(interestingness > 75) ? message_array[3] :
(interestingness > 50) ? message_array[2] :
(interestingness > 25) ? message_array[1] :
gain_piety(50);
mprf("Congratulations, your piety went from %d to %d!",
old_piety, you.piety);
const int old_piety = you.piety;
const int old_penance = you.penance[you.religion];
if (old_piety >= MAX_PIETY && !old_penance)
{
mprf("Your piety (%d) is already %s maximum.",
old_piety, old_piety == MAX_PIETY ? "at" : "above");
}
// even at maximum, you can still gain gifts
// try at least once f. maximum, or repeat until something happens
// Rarely, this might result in several gifts during the same round!
do {
gain_piety(50);
} while (old_piety < MAX_PIETY && old_piety == you.piety
&& old_penance == you.penance[you.religion]);
if (old_penance)
{
mprf("Congratulations, your penance was decreased from %d to %d!",
old_penance, you.penance[you.religion]);
}
else if (you.piety > old_piety)
{
mprf("Congratulations, your piety went from %d to %d!",
old_piety, you.piety);
}