Thought Effecter - AndroidQuazar/VanillaExpandedFramework GitHub Wiki

CompThoughtEffecter is a comp class that causes nearby pawns to get a given Thought

    //A comp class that makes an animal produce a certain Thought in nearby pawns

    public int radius = 1;
    public int tickInterval = 1000;
    public string thoughtDef = "AteWithoutTable";
    public bool showEffect = false;
    public bool needsToBeTamed = false;
    public bool conditionalOnWellBeing = false;
    public string thoughtDefWhenSuffering = "AteWithoutTable";

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 Helixien Slug in Alpha Animals cause a "disgusted" thought in nearby pawns

<comps>
	<li Class="AnimalBehaviours.CompProperties_ThoughtEffecter">
		<radius>10</radius>
		<tickInterval>500</tickInterval>
		<thoughtDef>AA_Disgust</thoughtDef>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️