(e.g., Slime:6) tries to place a unique monster which has already been generated elsewhere then force it to be placed anyways and give an error message.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7913 c06c8d41-db1a-0410-9941-cceddc491573
LUH72JJEXFXC76PRCIZGY6GBY3H7WWXT2T6E4WQQSMA4DZZTPYCQC
// Is a map for a specific place trying to place a unique which
// somehow already got created?
if (place.map.place.is_valid()
&& !invalid_monster_class(monster_type_thing.mid)
&& mons_is_unique(monster_type_thing.mid)
&& you.unique_creatures[monster_type_thing.mid])
{
mprf(MSGCH_ERROR, "ERROR: %s already generated somewhere "
"else; please file a bug report.",
mons_type_name(monster_type_thing.mid,
DESC_CAP_THE).c_str());
// Force it to be generated anyways.
you.unique_creatures[monster_type_thing.mid] = false;
}
}