git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3776 c06c8d41-db1a-0410-9941-cceddc491573
6INGHIA3J7XER4L7OZHGU4RR3QTRWISMXHD3AZQK6MQ3VDADBVAAC
switch (random2(100))
// 5% chance: Turn a monster into a priestly monster, if possible.
// This is currently only used for Beogh.
if (god == GOD_BEOGH && one_chance_in(20) && promote_to_priest(mon))
result = "priesthood";
// 95% chance: full healing.
else
// 5% chance: Turn a monster into a priestly monster, if
// possible. This is currently only used for Beogh.
case 0:
case 1:
case 2:
case 3:
case 4:
if (god == GOD_BEOGH && promote_to_priest(mon))
{
result = "priesthood";
break;
}
// Deliberate fall through.
bool healing = false;
bool vigour = true;
vigour = true;
}
if (healing && vigour)
result = "healing and extra vigour";
else if (healing)
result = "healing";
else
result = "extra vigour";
break;
}
if (healing && vigour)
result = "healing and extra vigour";
else if (healing)
result = "healing";
else
result = "extra vigour";