phenomena that the game happens to treat as monsters (as opposed to actual creatures), and (b) there's no easy way to mark fire vortices as code for when god gifts, either, since they're only placed in the beam routine for "Fire Storm".
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5679 c06c8d41-db1a-0410-9941-cceddc491573
ABQY3PFFBHPOGF4TRKNIV5KOTKZ2IYLAJR362XIKHJMQSYS7TKHQC
64LQALS66EFDRQUEN3NRAWD2PWE7VMNRSEUTMRKQSEQTS55ZRZXAC
AREBCIU2RU2RNHBWD4GARWEBKSL7HDFGDLII22H56OJO2AQUOMLQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
SY4WEUUAFEHLQXFAD7IM4WCTDHAG6HLKPC7GGII7JBBHGHQGD2CAC
7P3DLNFFFSZX43ZJRCWBB3EBTTYPCTDH5KMVXHIZS7JFFMTZNHXAC
ZJ35GZK55U4IYTYDAVXTAMBNG5YF3LIGYD7OVTQH3UFA56I7JE5AC
SYNARO4WXXFW5D6XQYFPSNS23LK44OPQPKPUD4PNL3AWKQWGA5WQC
HWARR4GI55BIEIJFDE57Y6QOBJ35QP64BJKGEN4T6LR7SKQCFOUQC
// Summon 2-4 spatial vortices.
summon_spatial_vortices(75 + random2(151), god_gift);
{
bool success = false;
for (int i = 1 + random2(3); i >= 0; --i)
{
if (create_monster(
mgen_data::alert_hostile_at(MONS_SPATIAL_VORTEX,
you.pos(), 3)) != -1)
{
success = true;
}
}
if (success)
mpr("Space twists in upon itself!");
else
canned_msg(MSG_NOTHING_HAPPENS);
// Summon 2-4 spatial vortices.
summon_spatial_vortices(75 + random2(151), god_gift);
{
bool success = false;
for (int i = 1 + random2(3); i >= 0; --i)
{
if (create_monster(
mgen_data::alert_hostile_at(MONS_SPATIAL_VORTEX,
you.pos(), 3)) != -1)
{
success = true;
}
}
if (success)
mpr("Space twists in upon itself!");
else
canned_msg(MSG_NOTHING_HAPPENS);
bool summon_spatial_vortices(int pow, bool god_gift)
{
bool success = false;
mpr("Space twists in upon itself!");
// Maximum power is 300 (5 vortices).
const int how_many = (pow / 75 + 1);
for (int i = 0; i < how_many; ++i)
{
if (create_monster(
mgen_data(MONS_SPATIAL_VORTEX, BEH_HOSTILE,
3, you.pos(), MHITYOU,
(god_gift ? MG_GOD_GIFT : 0) | MG_FORCE_BEH)) != -1)
{
success = true;
}
}
return (success);
}