git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6104 c06c8d41-db1a-0410-9941-cceddc491573
SOHQG56QTJOSEJ7VPVGDMXEWES4HEUGA4G3JDWQ2RZJBZQJVBHGQC if (numdifferent == numdemons){// If we have only demons, they'll always be friendly.if (numdifferent == 0)hostiletype = 0;// If we have only non-demons, there's a chance that// they may be hostile.else if (one_chance_in(4))hostiletype = 2;}
// If we have only non-demons, there's a chance that they// may be hostile.if (numdifferent == numdemons && one_chance_in(4))hostiletype = 2;// If we have only demons, they'll always be friendly.else if (numdifferent == 0)hostiletype = 0;