Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Refueling

juanosarg edited this page Feb 10, 2021 · 1 revision

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="AnimalBehaviours.CompProperties_Refueling">
		<fuelingRate>1000</fuelingRate>
		<fuelingRadius>5</fuelingRadius>
		<buildingsToAffect>
			<li>TorchLamp</li>
			<li>Campfire</li>
		</buildingsToAffect>
		<mustBeTamed>true</mustBeTamed>
	</li>
</comps>

VFE Core

General Comp classes

General DefModExtensions

Item Processor

PipeSystem

Custom Structure Generation

Multi Verb Combat Framework - MVCF

Animal Behaviours

Apparel

Cuisine

Furniture

Plants

Clone this wiki locally