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JHID57SF5SP53KYAUQTQC PSJ7QDBYFBE35ANUDUTNE5VMKOTNVD66AXCCYC45WWJZRTGBJYLQC monster_type *monster = new monster_type[numdemons];
// If we have a mix of demons and non-demons, there's a chance// that one or both of the factions may be hostile.int hostile = random2(12);int hostiletype =(hostile < 3) ? 0 : // 1/4: both are friendly(hostile < 11) ? (coinflip() ? 1 : 2) // 2/3: one is hostile: 3; // 1/12: both are hostile
if (numdifferent == numdemons)god_speaks(GOD_XOM, _get_xom_speech("multiple holy summons"));else if (numdifferent > 0)god_speaks(GOD_XOM, _get_xom_speech("multiple mixed summons"));elsegod_speaks(GOD_XOM, _get_xom_speech("multiple summons"));
summons[i] =create_monster(mgen_data(monster, BEH_FRIENDLY, 3,you.pos(), you.pet_target, MG_FORCE_BEH, GOD_XOM));
// If we have a mix of demons and non-demons, there's a chance// that one or both of the factions may be hostile.int hostile = random2(12);int hostiletype =(hostile < 3) ? 0 : // 1/4: both are friendly(hostile < 11) ? (coinflip() ? 1 : 2) // 2/3: one is hostile: 3; // 1/12: both are hostile
if (summons[i] != -1)success = true;}
// 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 (numdifferent == numdemons)god_speaks(GOD_XOM, _get_xom_speech("multiple holy summons"));else if (numdifferent > 0)god_speaks(GOD_XOM, _get_xom_speech("multiple mixed summons"));elsegod_speaks(GOD_XOM, _get_xom_speech("multiple summons"));
bool success = false;
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;}
for (int i = 0; i < numdemons; ++i){if (create_monster(mgen_data(monster[i], BEH_FRIENDLY, 3,you.pos(), you.pet_target, 0, GOD_XOM)) != -1)
for (int i = 0; i < numdemons; ++i)
delete[] monster;if (!success)god_speaks(GOD_XOM, "\"No, forget it.\"");done = true;
delete[] summons;