Propagate Event - KonradHeinser/EBSGFramework GitHub Wiki
This simple addition to the EBSG Extension allows you to designate the propagation HistoryEventDef attached to a gene similar to PropagateBloodfeederGene. This does not require any special classes, only the extension:
<modExtensions>
<li Class="EBSGFramework.EBSGExtension">
<propagateEvent>InsertDefNameHere</propagateEvent>
</li>
</modExtensions>
For anyone curious, this is the PropagateBloodfeederGene HistoryEventDef in its entirety:
<HistoryEventDef>
<defName>PropagateBloodfeederGene</defName>
<label>propagate bloodfeeder gene</label>
</HistoryEventDef>
This weirder example creates a gene that causes pawns of an ideology that have any preferred xenotype will never accept this gene being implanted, even if on a carrier that is the preferred xenotype:
<GeneDef>
<defName>OddDuck</defName>
<label>odd duck</label>
<description>Pawns of an ideology that have any preferred xenotype will never accept this gene being implanted, even if on a carrier that is the preferred xenotype.</description>
<modExtensions>
<li Class="EBSGFramework.EBSGExtension">
<propagateEvent>BecomeNonPreferredXenotype</propagateEvent>
</li>
</modExtensions>
</GeneDef>