mirror of
				https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
				synced 2024-08-14 23:57:38 +00:00 
			
		
		
		
	food utility fix
This commit is contained in:
		
							parent
							
								
									3b7637b977
								
							
						
					
					
						commit
						994a525cb7
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		
										
											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…
	
	Add table
		Add a link
		
	
		Reference in a new issue