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
Binary file not shown.
|
@ -95,10 +95,13 @@
|
|||
<Compile Include="Source\Thoughts\ThoughtWorker_Precept_Lactating_Essential_Social.cs" />
|
||||
<Compile Include="Source\WorkGivers\WorkGiver_MassageBreasts.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Folder Include="Defs\Thingdef\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Defs\AbilityDefs\Abilities_Hucow.xml" />
|
||||
<Content Include="Defs\HediffDefs\Hediffs_Hucow.xml" />
|
||||
<Content Include="Defs\HistoryEventDefs\HistoryEventDefs.xml" />
|
||||
<Content Include="Defs\JobDefs\Jobs_CRIALactation.xml" />
|
||||
<Content Include="Defs\MemeDefs\Memes_Hucow.xml" />
|
||||
<Content Include="Defs\PreceptDefs\Precepts_Lactating.xml" />
|
||||
|
|
|
@ -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,11 +42,17 @@ namespace CRIALactation
|
|||
|
||||
MeatSourceCategory meatSourceCategory = FoodUtility.GetMeatSourceCategory(ingredient);
|
||||
|
||||
if (ingester.Ideo != null)
|
||||
{
|
||||
|
||||
if (ingredient == ThingDefOf_Milk.HumanoidMilk || ingredient == ThingDefOf_Milk.HumanMilk)
|
||||
{
|
||||
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankMilkMeal, ingester, ingredient, meatSourceCategory);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue