Summon On Spawn - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

CompSummonOnSpawn is a comp class that makes an animal spawn additional animals when it spawns

    //A comp class to make an animal "summon" a configurable group of additional animals when spawned.
    //For example a spider spawning with a host of smaller spiders. Similar to base game wild spawns, but
    //with different defs

    public string pawnDef = "Pig";
    public List<int> groupMinMax;
    public bool summonsAreManhunters = true;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this allows the Kikimore Queen in RimWorld - Witcher Monster Hunt to spawn Kikimore Warriors, and those in turn have the same comp class, making them summon Kikimore Workers

<comps>
	<li Class="AnimalBehaviours.CompProperties_SummonOnSpawn">
		<pawnDef>WMAux_KikimoreWarrior</pawnDef>
		<groupMinMax>
			<li>2</li>
			<li>5</li>
		</groupMinMax>				
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️