food utility fix
This commit is contained in:
parent
3b7637b977
commit
994a525cb7
Binary file not shown.
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue