-
Notifications
You must be signed in to change notification settings - Fork 63
ResearchBuildingExtension
juanosarg edited this page Jun 4, 2026
·
1 revision
ResearchBuildingExtension extends the behaviour of a research building
// List of all research benches (if any) that are treated as equivalent to this one and can be used as replacements.
public List<ThingDef> equivalentBenches;
// List of all research facilities (if any) that are treated as equivalent to this one and can be used as replacements.
public List<ThingDef> equivalentFacilities;It is a def extension, so you just add it in XML in the <modExtensions> tag.
For example, this is patched into the base game Multianalyzer so the compact multianalyzer in Vanilla Gravship Expanded works:
<Patch>
<!-- Make compact multi-analyzer an equivalent building to a multi-analyzer -->
<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="MultiAnalyzer"]</xpath>
<value>
<li Class="VEF.Buildings.ResearchBuildingExtension">
<equivalentFacilities>
<li>VGE_CompactMultiAnalyzer</li>
</equivalentFacilities>
</li>
</value>
</Operation>
</Patch>- Abilities
- Animal Behaviours
- Apparels
- Buildings
- Cooking
- Factions
- Genes
- Global
- Graphics
- Hediffs
- Maps
- Memes
- OptionalFeatures
- Pawns
- Planet
- Plants
- Storyteller
- Things
- Weapons
- Weathers
- PipeSystem basics
- Resource
- Resource storage
- Resource processor
- Resource to thing
- Resource to power
- Thing to resource
- Resource trader
- Refill building with pipes
- Pipe valve
- Advanced Resource Processor
- Update to KCSG 2.0
- Exporting buildings
- Customizing symbols
- Debug helpers options
- Custom faction settlement
- Custom structure and scenarios
- Custom structure in quests
- Custom structure in WorldObjects
- Biome based structures
- Spawning world object(s) at world generation
- Prevent settlement spawning for nomadic factions