Thought Multiplying Genes - KonradHeinser/EBSGFramework GitHub Wiki
Vanilla Biotech added a way to completely nullify genes using nullifyingGenes, but that didn't leave us a lot of middle ground since that just turns thoughts into an on off situation. This allows you to add an extension to any thought you want that causes mood and opinion effects to be multiplied based on genes present on the pawn. For those not familiar with nullifyingGenes, take a look at one of the vanilla ThoughtDefs like IngestedHemogenPack, which has a nullifying gene of Hemogenic:
<nullifyingGenes>
<li>Hemogenic</li>
</nullifyingGenes>
To create a Thought Multiplying Gene, all you need to do is add the EBSGExtension to the thought, and create a list of geneticMultipliers. Each list item has a gene, a multiplier, and its own set of nullifyingGenes (if applicable). The nullifyingGenes in this case stop the multiplier from being used if the pawn has any gene on the list.
For an example, the below extension could be added to the SoakingWet thought to have an effect of 6 (3 * 2) for pawns that have the furskin gene, unless they have one of the cold resistance genes:
<modExtensions>
<li Class="EBSGFramework.EBSGThoughtExtension">
<geneticMultipliers>
<li>
<gene>Furskin</gene>
<multiplier>2</multiplier>
<nullifyingGenes>
<li>MinTemp_SmallDecrease</li>
<li>MinTemp_LargeDecrease</li>
</nullifyingGenes>
</li>
</geneticMultipliers>
</li>
</modExtensions>