mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
27 lines
818 B
C#
27 lines
818 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Verse;
|
|
using RimWorld;
|
|
using UnityEngine;
|
|
|
|
namespace CRIALactation
|
|
{
|
|
public class ThoughtWorker_Precept_NoRecentHumanMilk : ThoughtWorker_Precept, IPreceptCompDescriptionArgs
|
|
{
|
|
public IEnumerable<NamedArgument> GetDescriptionArgs()
|
|
{
|
|
yield return MinDaysSinceLastHumanMeatForThought.Named("HUMANMILKREQUIREDINTERVAL");
|
|
}
|
|
|
|
protected override ThoughtState ShouldHaveThought(Pawn p)
|
|
{
|
|
int num = Mathf.Max(0, p.TryGetComp<CompInduceLactation>().lastHumanLactationIngestedTick);
|
|
return Find.TickManager.TicksGame - num > 480000;
|
|
}
|
|
|
|
public const int MinDaysSinceLastHumanMeatForThought = 8;
|
|
}
|
|
}
|