Sexperience cum now gives fertilin

This commit is contained in:
Shabakur 2022-12-29 20:42:39 +01:00
parent a64cecbab3
commit 3c9e97beb6
4 changed files with 41 additions and 0 deletions

View file

@ -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;
}
}