mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
changes to lactation hediffs:
prisoners can be milked pawns spawn lactating by default with hucow precept
This commit is contained in:
parent
f715f352eb
commit
a5d5cc1d44
7 changed files with 38 additions and 54 deletions
33
CRIALactation/Source/Precepts/PreceptComp_Lactation.cs
Normal file
33
CRIALactation/Source/Precepts/PreceptComp_Lactation.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using Milk;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CRIALactation
|
||||
{
|
||||
public class PreceptComp_Lactation : PreceptComp
|
||||
{
|
||||
|
||||
public override void Notify_MemberGenerated(Pawn pawn, Precept precept)
|
||||
{
|
||||
|
||||
if(precept.def == PreceptDefOf_Lactation.Lactating_Essential &&
|
||||
LactationUtility.HasMilkableBreasts(pawn))
|
||||
{
|
||||
|
||||
if (!LactationUtility.IsLactating(pawn))
|
||||
{
|
||||
LactationUtility.StartLactating(pawn, pawn.relations.ChildrenCount > 0);
|
||||
Log.Message("Creating pawn with lact" + pawn.Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue