git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1957 c06c8d41-db1a-0410-9941-cceddc491573
XMX2Y7QSEXGV2SPDOFDNM2BQJH3S3WTMYLJYUREYV72NWTURHMSQC
NVD2HSEW2ONWNYDDCTOMZZOUP6NG4DCXI4LNYYIY4BQEBDMJQK5AC
SS6MUIJYTGIVBYU356Z563QJWLJ47QNHSJWS7GJTS7EATZH2ESJQC
KFULGQQOHWUTXOM3BXCCYPGGVGGY4Z6265XUFRCBPNLTZAEHJZSQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
SWOYPTHJAWFEDBMB3ROT33VQZIXGZD5UOXEV456DDUENW2HGA66QC
CQ24AVAI6SW3AHTIDMLPSTRRBEU6FHRF5I5FD6G5QIYE6PO4BQMQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
}
// Destroying orcish idols (a.k.a. idols of Beogh)
// may anger Beogh
void beogh_idol_revenge()
{
// Beogh watches his charges closely, but for others doesn't always notice
if (you.religion == GOD_BEOGH || one_chance_in(3))
{
if (you.religion != GOD_BEOGH &&
!player_under_penance() && you.piety > random2(400))
{
snprintf(info, INFO_SIZE, "Mortal, I have averted the wrath "
"of %s... this time.", god_name(GOD_BEOGH));
god_speaks(you.religion, info);
}
else
{
snprintf(info, INFO_SIZE, "%s screams, \"Feel the wrath of %s!\"",
god_name(GOD_BEOGH), god_name(GOD_BEOGH));
god_speaks(GOD_BEOGH, info);
int divine_hurt = 10 + random2(10);
for (int i = 0; i < 5; i++)
divine_hurt += random2( you.experience_level );
simple_god_message( " smites you!", GOD_BEOGH );
ouch( divine_hurt, 0, KILLED_BY_BEOGH_SMITING );
}
if (you.religion == GOD_BEOGH)
{
// comes closest and same result (penance + piety loss)
did_god_conduct(DID_ATTACK_FRIEND, 8);
}
}