hucows can eat anything in exchange for slower movement speed

This commit is contained in:
c0ffee 2022-08-05 22:04:35 -07:00
parent 95e1f5397a
commit 5696aea1c3
5 changed files with 7 additions and 6 deletions

View file

@ -39,7 +39,8 @@ namespace CRIALactation
}
else if (ingredients == null
|| !(ingredients.ingredients.Contains(ThingDefOf_Milk.HumanMilk) || (ingredients.ingredients.Contains(ThingDefOf_Milk.HumanoidMilk)))) {
|| !(ingredients.ingredients.Contains(ThingDefOf_Milk.HumanMilk) || (ingredients.ingredients.Contains(ThingDefOf_Milk.HumanoidMilk)))
&& !LactationUtility.IsHucow(ingester)) {
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankNonMilkMeal, ingester, foodDef, FoodUtility.GetMeatSourceCategory(foodDef));
__result = ___ingestThoughts;
}

View file

@ -19,7 +19,7 @@ namespace CRIALactation
protected override ThoughtState ShouldHaveThought(Pawn p)
{
int num = Mathf.Max(0, p.TryGetComp<CompInduceLactation>().lastHumanLactationIngestedTick);
return Find.TickManager.TicksGame - num > 480000;
return Find.TickManager.TicksGame - num > 480000 && !LactationUtility.IsHucow(p);
}
public const int MinDaysSinceLastHumanMeatForThought = 8;