undead and demonic monsters (although not as often).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4151 c06c8d41-db1a-0410-9941-cceddc491573
6LPEUSJXQA2ZI2ADSK3OAKWFJLIGVWRHB7TDFB5L5EXYFUOK36AQC
ERTQJ5ZXDBRGKC5N3GZ6U4MFFK5HB6737FVLVD4GSMGTIFCSJJJQC
HJN7UN4ZJCKRNABVUXGOWBCPSOC6WVYKYK46ZGUOLM5YF2OQYM2QC
QDBILCQHREAKSVXBJJGE2EPNR4ATTQWUZMV7BLJYZWWUI737TSKQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
return false; // Ely only cares about natural/holy monsters if (mons_holiness(mon) != MH_NATURAL && mons_holiness(mon) != MH_HOLY)
return false;
// Ely only cares about natural/holy monsters
if (mons_holiness(mon) != MH_NATURAL && mons_holiness(mon) != MH_HOLY)
const mon_holy_type holiness = mons_holiness(mon);
(is_player_same_species(mon->type) // same species || mons_holiness(mon) == MH_HOLY) ? 2 // holy beings
(is_player_same_species(mon->type) // same species
|| mons_holiness(mon) == MH_HOLY) ? 2 // holy beings
(is_player_same_species(mon->type)) ? 2 // same species
const int random_factor = random2(you.skills[SK_INVOCATIONS] * healed/3);
int divisor = 3; if (holiness == MH_HOLY) divisor--; else if (holiness == MH_UNDEAD) divisor++; else if (holiness == MH_DEMONIC) divisor += 2;
int divisor = 3;
if (holiness == MH_HOLY)
divisor--;
else if (holiness == MH_UNDEAD)
divisor++;
else if (holiness == MH_DEMONIC)
divisor += 2;
const int random_factor = random2(you.skills[SK_INVOCATIONS] * healed / divisor);
const int random_factor = random2(you.skills[SK_INVOCATIONS] * healed /
divisor);