effects only), and clean up handling of players that can't safely mutate.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4573 c06c8d41-db1a-0410-9941-cceddc491573
ZSW72OXJ3ZHULVRLHEIJTD6HA5LCH6PX46TSSM65A3O45RI7L2SAC
LEGFIEUGVU2LZELGQH4TZTIJGKEVUHFTRGQ4Y2KGLSK7KNDI7BFQC
DUFUI7B346N64JPPBCXVHWJBWFALMCCKKQERJECDM72TI6DPSDYAC
SWOYPTHJAWFEDBMB3ROT33VQZIXGZD5UOXEV456DDUENW2HGA66QC
CGYTZT5QWIEGYKUOLOK7MFXSLJKLYRZONER5ZCDZO5XYWSLG475QC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
G2EYUPAIPISVAEG26BS3SQANL37EEZJ3TZBJKKWHGKQ66LB3RFQAC
CA6ZG6P2CE5EPAOQSB3P7NBDKTNFFHQP4CPOUFZL32ON6N32GSSQC
E5Z2X7CXTA6FIFOIBL4QGGCKLJRKAJXHZ5TZHPXFPLTG7CA5JHYAC
// if little mutated, do something else instead
if (punishment < 2 && count_mutations() <= random2(3))
punishment = random2(6)+2;
// if little mutated or can't unmutate, do something else instead
if (punishment < 2 && count_mutations() <= random2(3)
|| !can_safely_mutate())
{
punishment = random2(8)+2;
}
if (can_safely_mutate())
{
simple_god_message(" draws some chaos from your body!", god);
bool success = false;
for (int i = 0; i < 7; i++)
if (random2(10) > i
&& delete_mutation(RANDOM_MUTATION, true, true))
{
success = true;
}
if (success && !count_mutations())
{
simple_god_message(" draws some chaos from your body!", god);
bool success = false;
for (int i = 0; i < 7; i++)
if (random2(10) > i
&& delete_mutation(RANDOM_MUTATION, true, true))
case 6: // famine, 25%
case 6: // recital (20%)
simple_god_message(" recites the Axioms of Law!");
switch (one_chance_in(3))
{
case 0:
confuse_player( 3 + random2(10), false );
break;
case 1:
you.put_to_sleep();
break;
case 2:
you.paralyse( 3 + random2(10) );
break;
}
break;
case 7:
case 8: // famine (20%)