holy beings.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7555 c06c8d41-db1a-0410-9941-cceddc491573
SROWUFFIKQV3PLGRJBPFUBMY4THTWIR2632PTVDAYEB5R3BDSDJAC
JYRTBABEVTAZLGHCFMQZH6YA3WG2FX24NBIGBCAAIXR5B3XQ63GQC
NMZFKLRNGUMWPRLQCGHJPKTEFPPBIGMM2MEND5CR3QIEF5Z6BQDAC
YXAU2JMDFDUB7UPB5C3XX4IZ64TCJDC6JFWW2OYYXIL3BKBWP2ZQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
DGFWFFHCEBQK2TSMHN7RYPRNRVGEAYXM7GYJ4L37Z2ZNSIIUWQ4QC
DF5LOTJFSXOT7UBDHLBDLGA22OY4L7ZF6CVFP6H3KL4N5CHB5C5QC
SA36K3OJ75PNVR2F4QAPNU2LUGFTVHNIAZVSXCBXBT2NLW2RTUPAC
NDCVITU5R7TBEUC4FILNFRKWQGUNCJUGW5HA5KW3CQTU6AYRLYWQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
NG53L53MSFQZAIVKHG54IEMXNJ33AYVPF2OZM4MMJFDKEJCGPBSAC
3DQXSE4YGFBBDUWK4YEOFWW4UPWILWELFSLP37SL6BERGAZJC5YAC
OWERGKLVPNPGIIS23FZ7ZDOBWUIXCKYAFG3URXU75JAUDX3N5ENAC
TBLVONZGCKVUXW7NEG4NSDMFIIO6UZOG4FHTJGT6MKSSO3B5J46AC
// Undead slave is any friendly undead monster. Kiku and Yred pay
// attention to the undead, and both like the death of living
// things.
// You shouldn't have undead slaves if you worship a good god,
// but check anyway, just in case.
case DID_HOLY_KILLED_BY_UNDEAD_SLAVE:
switch (you.religion)
{
case GOD_ZIN:
case GOD_SHINING_ONE:
case GOD_ELYVILON:
if (testbits(victim->flags, MF_CREATED_FRIENDLY)
|| testbits(victim->flags, MF_WAS_NEUTRAL))
{
level *= 3;
penance = level;
}
piety_change = -level;
retval = true;
break;
case GOD_YREDELEMNUL:
case GOD_KIKUBAAQUDGHA: // note: reapers aren't undead
case GOD_MAKHLEB:
case GOD_LUGONU:
if (god_hates_attacking_friend(you.religion, victim))
break;
simple_god_message(" accepts your slave's kill.");
retval = true;
if (random2(level + 18) > 2)
piety_change = 1;
break;
default:
break;
}
break;
case DID_HOLY_KILLED_BY_SERVANT:
switch (you.religion)
{
case GOD_ZIN:
case GOD_SHINING_ONE:
case GOD_ELYVILON:
if (testbits(victim->flags, MF_CREATED_FRIENDLY)
|| testbits(victim->flags, MF_WAS_NEUTRAL))
{
level *= 3;
penance = level;
}
piety_change = -level;
retval = true;
break;
case GOD_KIKUBAAQUDGHA: // note: reapers aren't undead
case GOD_MAKHLEB:
case GOD_LUGONU:
if (god_hates_attacking_friend(you.religion, victim))
break;
simple_god_message(" accepts your collateral kill.");
retval = true;
if (random2(level + 18) > 2)
piety_change = 1;
break;
default:
break;
}
break;
"Servant Kill Natural Evil", "Servant Kill Holy",
"Spell Memorise", "Spell Cast", "Spell Practise",
"Spell Nonutility", "Cards", "Stimulants", "Drink Blood",
"Cannibalism", "Eat Meat", "Eat Souled Being",
"Servant Kill Natural Evil", "Undead Slave Kill Holy",
"Servant Kill Holy", "Spell Memorise", "Spell Cast",
"Spell Practise", "Spell Nonutility", "Cards", "Stimulants",
"Drink Blood", "Cannibalism", "Eat Meat", "Eat Souled Being",
if (targ_holy == MH_NATURAL)
// Yes, this is a hack, but it makes sure that confused
// monsters doing the kill are not referred to as "slave",
// and I think it's okay that Yredelemnul ignores kills
// done by confused monsters as opposed to enslaved or
// friendly ones. (jpeg)
if (mons_friendly(&menv[killer_index]))
// Yes, this is a hack, but it makes sure that confused
// monsters doing the kill are not referred to as
// "slave", and I think it's okay that Yredelemnul
// ignores kills done by confused monsters as opposed
// to enslaved or friendly ones. (jpeg)
if (mons_friendly(&menv[killer_index]))
{
notice |=
did_god_conduct(DID_LIVING_KILLED_BY_UNDEAD_SLAVE,
notice |=
did_god_conduct(DID_LIVING_KILLED_BY_UNDEAD_SLAVE,
notice |= did_god_conduct( DID_HOLY_KILLED_BY_SERVANT,
monster->hit_dice );
if (attacker_holy == MH_UNDEAD)
{
// Yes, this is a hack, but it makes sure that confused
// monsters doing the kill are not referred to as
// "slave", and I think it's okay that Yredelemnul
// ignores kills done by confused monsters as opposed
// to enslaved or friendly ones. (jpeg)
if (mons_friendly(&menv[killer_index]))
{
notice |=
did_god_conduct(DID_HOLY_KILLED_BY_UNDEAD_SLAVE,
monster->hit_dice);
}
else
{
notice |=
did_god_conduct(DID_HOLY_KILLED_BY_SERVANT,
monster->hit_dice);
}
}
else
notice |= did_god_conduct(DID_HOLY_KILLED_BY_SERVANT,
monster->hit_dice);