Rock Spawner - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

CompProperties_RockSpawner is simple code for an auto-drill that just selects rocks from the biome it is in.

        public int spawnCount = 1;
        public IntRange spawnIntervalRange = new IntRange(100, 100);
        public bool spawnForbidden;
        public bool requiresPower;
        public bool requiresFuel;
        public bool writeTimeLeftToSpawn;
        public bool showMessageIfOwned;
        public string saveKeysPrefix;
        public bool inheritFaction;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. This is added to the automatic drill in VFE Mechanoids:

<comps>
	<li Class="VEF.Buildings.CompProperties_RockSpawner">
		<requiresPower>true</requiresPower>
		<requiresFuel>true</requiresFuel>
		<spawnCount>1</spawnCount>
		<spawnIntervalRange>5000~5000</spawnIntervalRange>
		<writeTimeLeftToSpawn>true</writeTimeLeftToSpawn>
		<showMessageIfOwned>false</showMessageIfOwned>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️