Skip to content

AffectedByFacilitiesExtension

juanosarg edited this page Jun 4, 2026 · 1 revision

<- Back

AffectedByFacilitiesExtension allows you to tweak the way a building reacts to linkables

        // A list of Affected By Facilities defs that we're copying links from
        public List<ThingDef> copyLinksFrom = null;

        // If true, prevents any AffectedByFacilitiesExtension with copyFacilitiesFrom from linking with this building.
        public bool disableFacilityExtensionLinking = false;

How to use this code?

An example, the compact stove in Vanilla Gravship Expanded copying linking properties from the base game stove:

<modExtensions>
      <li Class="VEF.Buildings.AffectedByFacilitiesExtension">
        <copyLinksFrom>
          <li>ElectricStove</li>
          <li>TableButcher</li>
        </copyLinksFrom>
      </li>
</modExtensions>

Clone this wiki locally