mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2026-06-18 19:25:57 +00:00
- Removed DDS Files - Added Initial Support for Rimworld 1.6 - Added Additional mod requirement to PatchBSShared.xml to prevent premature loading. - Refactored Cumpilation integration to make it optional rather then a Required Mod. - Disabled succubus tail interactions pending rewrite for RJW's new interactions system. - Disabled Quirks pending rewrite RJW separating them into their own mod.
24 lines
724 B
C#
24 lines
724 B
C#
using RimWorld;
|
|
using Verse;
|
|
|
|
namespace RJW_Genes
|
|
{
|
|
/// <summary>
|
|
/// This class checks for pawns with LifeForce and Cumeater Gene to add Fertilin when eating cum (the Item from RJW-Sexperience).
|
|
/// </summary>
|
|
public class IngestionOutcomeDoer_LifeForceOffset : IngestionOutcomeDoer
|
|
{
|
|
public const float DEFAULT_FERTILIN_PER_UNIT = 1f;
|
|
public float FertilinPerUnit = 1f;
|
|
|
|
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested, int ingestedCount)
|
|
{
|
|
if (GeneUtility.HasLifeForce(pawn) && GeneUtility.IsCumEater(pawn))
|
|
{
|
|
float num = ingestedCount * this.FertilinPerUnit / 100;
|
|
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|