hucow changes

This commit is contained in:
c0ffee12 2021-08-02 11:55:46 -07:00
parent 064871641c
commit 5e807217bc
21 changed files with 373 additions and 23 deletions

View file

@ -0,0 +1,19 @@
using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace CRIALactation
{
public class HediffCompProperties_StopOnceNotLactating : HediffCompProperties
{
public HediffCompProperties_StopOnceNotLactating()
{
this.compClass = typeof(HediffComp_StopOnceNotLactating);
}
}
}

View file

@ -0,0 +1,26 @@
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);
}
}
}
}