mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
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
|
|
{
|
|
/** //doesn't work because inheritance problems with rimworld
|
|
public class Precept_Lactation : Precept
|
|
{
|
|
|
|
public override void Notify_MemberSpawned(Pawn pawn)
|
|
{
|
|
Log.Message("spawning pawn with lact");
|
|
if (!pawn.IsColonistPlayerControlled && !LactationUtility.IsLactating(pawn))
|
|
{
|
|
LactationUtility.StartLactating(pawn, pawn.relations.ChildrenCount > 0);
|
|
}
|
|
|
|
//spawned into map
|
|
base.Notify_MemberSpawned(pawn);
|
|
}
|
|
|
|
public override void Notify_MemberGenerated(Pawn pawn)
|
|
{
|
|
Log.Message("Creating pawn with lact");
|
|
|
|
//first created
|
|
if(pawn.IsColonistPlayerControlled && LactationUtility.HasMilkableBreasts(pawn))
|
|
{
|
|
|
|
if (!LactationUtility.IsLactating(pawn))
|
|
{
|
|
LactationUtility.StartLactating(pawn, pawn.relations.ChildrenCount > 0);
|
|
Log.Message("Creating pawn with lact" + pawn.Name);
|
|
}
|
|
}
|
|
|
|
base.Notify_MemberGenerated(pawn);
|
|
}
|
|
|
|
|
|
}
|
|
**/
|
|
}
|