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

Give Thoughts On Caravan

juanosarg edited this page Sep 8, 2022 · 1 revision

CompGiveThoughtsOnCaravan makes an animal create buffs and debuffs on the human members of a caravan

    //CompGiveThoughtsOnCaravan scans the pawn list of a caravan this animal is a part of, 
    //and confers "thought" on each of them. A "negativeThought" can be configured to be created at random

    public int intervalTicks = 30000;
    public ThoughtDef thought;
    public bool causeNegativeAtRandom = false;
    public float randomNegativeChance = 0.1f;
    public ThoughtDef negativeThought;

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 Hurseman in Vanilla Genetics Expanded to affect caravans:

<comps>
	<li Class="AnimalBehaviours.CompProperties_GiveThoughtsOnCaravan">
		<intervalTicks>10000</intervalTicks>
		<thought>GR_EngagedByHumanoidMood</thought>
		<causeNegativeAtRandom>true</causeNegativeAtRandom>
		<randomNegativeChance>0.1</randomNegativeChance>
		<negativeThought>GR_InsultedByHumanoidMood</negativeThought>
	</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