git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3728 c06c8d41-db1a-0410-9941-cceddc491573
XKWPTINAGPP4MXVIIYFOGQZPK53KSDZ4VZHVORJBOXC7XB3WUCLQC
// Mark factions hostile as appropriate.
beh_type beh =
(hostiletype == 1 && is_demon) ? BEH_HOSTILE :
(hostiletype == 2 && !is_demon) ? BEH_HOSTILE :
(hostiletype == 3) ? BEH_HOSTILE
: BEH_GOD_GIFT;
summons[i] = create_monster(mon, 3, BEH_GOD_GIFT,
you.x_pos, you.y_pos,
you.pet_target, MONS_PROGRAM_BUG);
}
if (numdifferent != numdemons && numdifferent > 0)
{
for (int i = 0; i < numdemons; ++i)
{
if (summons[i] != -1 && hostiletype != 0)
{
monsters *mon = &menv[i];
create_monster(mon, 3, beh, you.x_pos, you.y_pos,
you.pet_target, MONS_PROGRAM_BUG);
// Mark factions hostile as appropriate.
if ((mons_is_demon(mon->type) && hostiletype == 1)
|| (!mons_is_demon(mon->type) && hostiletype == 2)
|| hostiletype == 3)
{
mon->attitude = ATT_HOSTILE;
}
}
}