coffees-rjw-ideology-addons/CRIALactation/Source/Hediffs/HediffComp_StopOnceNotLactating.cs

27 lines
537 B
C#
Raw Normal View History

2021-08-02 18:55:46 +00:00
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace CRIALactation
{
public class HediffComp_StopOnceNotLactating : HediffComp
{
public override void CompPostTick(ref float severityAdjustment)
{
base.CompPostTick(ref severityAdjustment);
if(!LactationUtility.IsLactating(Pawn))
{
LactationUtility.StopBeingHucow(Pawn);
}
}
}
}