Resource to power - AndroidQuazar/VanillaExpandedFramework GitHub Wiki
Allow a building to convert resource to power.
Below, an example of the comps needed (also see CompProperties_ResourceTrader), the building need to tick if you use the ambient sound.
<li Class="PipeSystem.CompProperties_ResourceTrader">
<pipeNet>VCHE_ChemfuelNet</pipeNet>
<consumptionPerTick>1</consumptionPerTick>
</li>
<!-- The comp below is the vanilla power comp, you only need to specify it's class -->
<li Class="CompProperties_Power">
<transmitsPower>true</transmitsPower>
<!-- Specify the comp class -->
<compClass>PipeSystem.CompPowerPlantNeedResource</compClass>
<basePowerConsumption>-1000</basePowerConsumption>
</li>