mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
potential fix to raw milk drink
This commit is contained in:
parent
3bcff610d5
commit
3b7637b977
3 changed files with 13 additions and 4 deletions
|
@ -21,7 +21,7 @@ namespace CRIALactation
|
|||
}
|
||||
|
||||
[HarmonyPatch(typeof(FoodUtility), "ThoughtsFromIngesting")]
|
||||
public static void Postfix(ref List<FoodUtility.ThoughtFromIngesting> __result, Pawn ingester, Thing foodSource, ThingDef foodDef)
|
||||
public static void Prefix(Pawn ingester, Thing foodSource, ThingDef foodDef)
|
||||
{
|
||||
|
||||
if (ingester.Ideo != null)
|
||||
|
@ -42,9 +42,15 @@ namespace CRIALactation
|
|||
|
||||
MeatSourceCategory meatSourceCategory = FoodUtility.GetMeatSourceCategory(ingredient);
|
||||
|
||||
if(ingredient == ThingDefOf_Milk.HumanoidMilk || ingredient == ThingDefOf_Milk.HumanMilk)
|
||||
if (ingester.Ideo != null)
|
||||
{
|
||||
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankMilkMeal, ingester, ingredient, meatSourceCategory);
|
||||
|
||||
if (ingredient == ThingDefOf_Milk.HumanoidMilk || ingredient == ThingDefOf_Milk.HumanMilk)
|
||||
{
|
||||
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankMilkMeal, ingester, ingredient, meatSourceCategory);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue