Active Terrain Temp Control - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

TerrainCompProperties_TempControl allows the terrain to act as a temperature controller

        public float energyPerSecond;
        public bool reliesOnPower = true;
        public float lowPowerConsumptionFactor = 0.2f;
        public bool cleansSnow = true;
        public float snowMeltAmountPerSecond = 0.02f;

How do I use this code?

It is a comp class, so you just add it in XML in the <terrainComps> tag of the ActiveTerrain.

<terrainComps>
	<li Class="VEF.Maps.TerrainCompProperties_TempControl">
		<energyPerSecond>50</energyPerSecond>
	</li>		
</terrainComps>
⚠️ **GitHub.com Fallback** ⚠️