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

Change Def if Not Unique

juanosarg edited this page Aug 8, 2021 · 1 revision

CompChangeDefIfNotUnique swaps the animal for a different one if it isn't the only one with its defName in the map, therefore making it unique

   public string defToChangeTo = "";

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 the Ancient Giant Spider in Vanilla Animals Expanded - Caves to be unique (turns a second one into a rat, which the player will most likely ignore)

<comps>
	<li Class="AnimalBehaviours.CompProperties_ChangeDefIfNotUnique">
		<defToChangeTo>Rat</defToChangeTo>
	</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