diff --git a/Common/Assemblies/Rjw-Genes.dll b/Common/Assemblies/Rjw-Genes.dll index 3e6179d..0642091 100644 Binary files a/Common/Assemblies/Rjw-Genes.dll and b/Common/Assemblies/Rjw-Genes.dll differ diff --git a/Common/Patches/ThingDefs/Sexperience_Cum.xml b/Common/Patches/ThingDefs/Sexperience_Cum.xml new file mode 100644 index 0000000..b905d4b --- /dev/null +++ b/Common/Patches/ThingDefs/Sexperience_Cum.xml @@ -0,0 +1,17 @@ + + + + + +
  • RJW Sexperience
  • +
    + + /Defs/ThingDef[defName="GatheredCum"]/ingestible/outcomeDoers + +
  • + 1 +
  • +
    +
    +
    +
    \ No newline at end of file diff --git a/Source/Genes/Life_Force/IngestionOutcomeDoer_LifeForceOffset.cs b/Source/Genes/Life_Force/IngestionOutcomeDoer_LifeForceOffset.cs new file mode 100644 index 0000000..2a22097 --- /dev/null +++ b/Source/Genes/Life_Force/IngestionOutcomeDoer_LifeForceOffset.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using RimWorld; +using Verse; + +namespace RJW_Genes +{ + public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer + { + protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested) + { + if (GeneUtility.HasLifeForce(pawn)) + { + float num = ingested.stackCount * this.FertilinPerUnit / 100; + GeneUtility.OffsetLifeForce(pawn, num); + } + } + public float FertilinPerUnit = 1f; + } +} diff --git a/Source/Rjw-Genes.csproj b/Source/Rjw-Genes.csproj index d7be4a7..a79deca 100644 --- a/Source/Rjw-Genes.csproj +++ b/Source/Rjw-Genes.csproj @@ -118,6 +118,7 @@ +