food utility fix

This commit is contained in:
c0ffee 2021-11-16 22:28:13 -08:00
parent 3b7637b977
commit 994a525cb7
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace CRIALactation
}
[HarmonyPatch(typeof(FoodUtility), "ThoughtsFromIngesting")]
public static void Prefix(Pawn ingester, Thing foodSource, ThingDef foodDef)
public static void Postfix(ref List<FoodUtility.ThoughtFromIngesting> __result, ref List<FoodUtility.ThoughtFromIngesting> ___ingestThoughts, Pawn ingester, Thing foodSource, ThingDef foodDef)
{
if (ingester.Ideo != null)
@ -30,6 +30,9 @@ namespace CRIALactation
if (foodDef == ThingDefOf_Milk.HumanMilk || foodDef == ThingDefOf_Milk.HumanoidMilk)
{
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankMilkRaw, ingester, foodDef, FoodUtility.GetMeatSourceCategory(foodDef));
__result = ___ingestThoughts;
}