mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
24 lines
551 B
C#
24 lines
551 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|