Refueling - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

CompRefueling makes creatures refuel specified nearby buildings

        //Similar to CompProperties_Electrified, this comp makes the user
        //refuel nearby specified buildings

        public int fuelingRate = 0;
        public int fuelingRadius = 0;
        public List<string> buildingsToAffect = null;
        public bool mustBeTamed = false;

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 Terrible Terrors in Race to the Rim to refuel Campfires and torches

<comps>
	<li Class="VEF.AnimalBehaviours.CompProperties_Refueling">
		<fuelingRate>1000</fuelingRate>
		<fuelingRadius>5</fuelingRadius>
		<buildingsToAffect>
			<li>TorchLamp</li>
			<li>Campfire</li>
		</buildingsToAffect>
		<mustBeTamed>true</mustBeTamed>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️