3/4 of the time, for consistency with single non-demonic summons.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6093 c06c8d41-db1a-0410-9941-cceddc491573
EXYOAOND4VQ76OFAAGCPVIFGIZIF6BQH6S263QZRQIWAZWEDAYNAC
7RDIBNLUIBTAYOJXJ5Q3DOW3MKKYXBAA3Q4G4QE74KJL23NW6C7AC
NIJDQAJEWQIYKPDWIXYCCT4JIWVE6CWJ3J3K4N5PPGHWENGNZZXQC
KFULGQQOHWUTXOM3BXCCYPGGVGGY4Z6265XUFRCBPNLTZAEHJZSQC
UWHZCQPPWGEJXWES63STKGH4L65LTS35RQUXUL7CCCROQBLHHNZQC
// If we get only demons, they'll always be friendly. If we get // only non-demons, there's a chance that they may be hostile. if (numdifferent == numdemons) { if (numdifferent == 0) hostiletype = 0; else if (one_chance_in(4)) hostiletype = 2; }
// If we get only demons, they'll always be friendly. If we get
// only non-demons, there's a chance that they may be hostile.
if (numdifferent == numdemons)
{
if (numdifferent == 0)
hostiletype = 0;
else if (one_chance_in(4))
hostiletype = 2;
}
if (hostiletype != 0 && numdifferent != numdemons && numdifferent > 0)
if (hostiletype != 0 && numdifferent != numdemons
&& numdifferent > 0)
if (hostiletype != 0)