Passive research - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

HediffComp_PassiveResearch is a comp class that can be applied to a hediff so the carrier passively adds research points to the currently active research project

        public int researchPoints = 1;
        public int tickInterval = 6000;

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag of the hediff you want to have this behaviour. For example, this adds 50 research points every hour:

<comps>
	<li Class="VEF.AnimalBehaviours.HediffCompProperties_PassiveResearch">
		<tickInterval>6000</tickInterval>
		<researchPoints>50</researchPoints>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️