mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
succubi are back
This commit is contained in:
parent
701168f642
commit
0617ea4995
124 changed files with 3894 additions and 12 deletions
|
@ -0,0 +1,24 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue