Customizable Bloodclotting - KonradHeinser/EBSGFramework GitHub Wiki
This gene class allows you to create super-clotting gene variants that can use a different frequency and/or tend quality than the vanilla superclotting gene. The code below contains everything needed for the gene with the default values, which are the same as what super-clotting uses. It is recommended that clotCheckInterval always remains above 60 as the lower the number, the more often the code will activate, which can become a performance issue if too frequent:
<geneClass>EBSGFramework.Gene_CustomizableClotting</geneClass>
<modExtensions>
<li Class="EBSGFramework.EBSGExtension">
<clotCheckInterval>360</clotCheckInterval>
<minTendQuality>0.2</minTendQuality>
<maxTendQuality>0.7</maxTendQuality>
</li>
</modExtensions>
Mutated example from Superhero Genes. This is the strongest level of super healing available, which causes wounds to seal every second with very high quality along with providing other related bonuses, including overriding the fertility by age curve:
<GeneDef>
<defName>SuperHealing</defName>
<label>super healing</label>
<description>There was a description here.</description>
<displayOrderInCategory>27</displayOrderInCategory>
<biostatMet>-5</biostatMet>
<iconPath>Base/SuperHealing</iconPath>
<prerequisite>SuperHeroBase</prerequisite>
<geneClass>EBSGFramework.Gene_CustomizableClotting</geneClass>
<preventPermanentWounds>true</preventPermanentWounds>
<displayCategory>Healing</displayCategory>
<biostatCpx>0</biostatCpx>
<customEffectDescriptions>
<li>Bleeding wounds close very quickly.</li>
<li>Completely stops fertility loss due to old age.</li>
</customEffectDescriptions>
<hediffGiversCannotGive>
<li>Carcinoma</li>
<li>HeartAttack</li>
<li>BadBack</li>
<li>Frail</li>
<li>Cataract</li>
<li>Dementia</li>
<li>Alzheimers</li>
<li>Asthma</li>
<li>HeartArteryBlockage</li>
</hediffGiversCannotGive>
<statFactors>
<LifespanFactor>3</LifespanFactor>
<ImmunityGainSpeed>10</ImmunityGainSpeed>
<InjuryHealingFactor>10</InjuryHealingFactor>
</statFactors>
<statOffsets>
<ImmunityGainSpeed>10</ImmunityGainSpeed>
<InjuryHealingFactor>10</InjuryHealingFactor>
</statOffsets>
<capMods>
<li>
<capacity>BloodFiltration</capacity>
<offset>1.0</offset>
</li>
<li>
<capacity>BloodPumping</capacity>
<offset>1.0</offset>
</li>
</capMods>
<modExtensions>
<li Class="EBSGFramework.EBSGExtension">
<ClotCheckInterval>60</ClotCheckInterval>
<minTendQuality>0.8</minTendQuality>
<maxTendQuality>0.99</maxTendQuality>
</li>
<li Class="EBSGFramework.FertilityByGenderAgeExtension">
<fertilityAgeFactor>
<points>
<li>(14, 0)</li>
<li>(20, 1)</li>
<li>(50, 1)</li>
</points>
</fertilityAgeFactor>
</li>
</modExtensions>
</GeneDef>