2022-12-29 19:42:39 +00:00
|
|
|
|
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;
|
2023-01-08 14:51:07 +00:00
|
|
|
|
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num);
|
2022-12-29 19:42:39 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public float FertilinPerUnit = 1f;
|
|
|
|
|
}
|
|
|
|
|
}
|