mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
mc for onslort 1.4
This commit is contained in:
parent
711a61a31a
commit
396cbb8c56
23 changed files with 237 additions and 43 deletions
|
@ -31,7 +31,7 @@ namespace CRIALactation
|
|||
{
|
||||
|
||||
CompIngredients ingredients = foodSource.TryGetComp<CompIngredients>();
|
||||
if (foodDef == ThingDefOf_Milk.HumanMilk || foodDef == ThingDefOf_Milk.HumanoidMilk || foodDef.defName == "VCE_HumanoidCheese" || foodDef.defName == "cheese")
|
||||
if (foodDef == ThingDefOf_Milk.HumanMilk || foodDef == ThingDefOf_Milk.HumanoidMilk || foodDef == ThingDefOf_Milk.HumanMilkBulk || foodDef == ThingDefOf_Milk.HumanoidMilkBulk || foodDef.defName == "VCE_HumanoidCheese" || foodDef.defName == "cheese")
|
||||
{
|
||||
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankMilkRaw, ingester, foodDef, FoodUtility.GetMeatSourceCategory(foodDef));
|
||||
|
||||
|
@ -39,7 +39,7 @@ namespace CRIALactation
|
|||
|
||||
}
|
||||
else if (ingredients == null
|
||||
|| !(ingredients.ingredients.Contains(ThingDefOf_Milk.HumanMilk) || (ingredients.ingredients.Contains(ThingDefOf_Milk.HumanoidMilk)))
|
||||
|| !(ingredients.ingredients.Contains(ThingDefOf_Milk.HumanMilk) || (ingredients.ingredients.Contains(ThingDefOf_Milk.HumanoidMilk)) || (ingredients.ingredients.Contains(ThingDefOf_Milk.HumanMilkBulk)) || (ingredients.ingredients.Contains(ThingDefOf_Milk.HumanoidMilkBulk)))
|
||||
&& !LactationUtility.IsHucow(ingester)) {
|
||||
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankNonMilkMeal, ingester, foodDef, FoodUtility.GetMeatSourceCategory(foodDef));
|
||||
__result = ___ingestThoughts;
|
||||
|
@ -58,7 +58,7 @@ namespace CRIALactation
|
|||
if (ingester.Ideo != null)
|
||||
{
|
||||
|
||||
if (ingredient == ThingDefOf_Milk.HumanoidMilk || ingredient == ThingDefOf_Milk.HumanMilk || ingredient.defName == "VCE_HumanoidCheese" || ingredient.defName == "cheese")
|
||||
if (ingredient == ThingDefOf_Milk.HumanoidMilk || ingredient == ThingDefOf_Milk.HumanMilk || ingredient == ThingDefOf_Milk.HumanoidMilkBulk || ingredient == ThingDefOf_Milk.HumanMilkBulk || ingredient.defName == "VCE_HumanoidCheese" || ingredient.defName == "cheese")
|
||||
{
|
||||
AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankMilkMeal, ingester, ingredient, meatSourceCategory);
|
||||
}
|
||||
|
@ -77,6 +77,8 @@ namespace CRIALactation
|
|||
{
|
||||
compIngredients.ingredients.Add(ThingDefOf_Milk.HumanMilk);
|
||||
compIngredients.ingredients.Add(ThingDefOf_Milk.HumanoidMilk);
|
||||
compIngredients.ingredients.Add(ThingDefOf_Milk.HumanMilkBulk);
|
||||
compIngredients.ingredients.Add(ThingDefOf_Milk.HumanoidMilkBulk);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace CRIALactation
|
|||
public static void Prefix(Thing __instance, Pawn ingester)
|
||||
{
|
||||
|
||||
if(__instance?.def == ThingDefOf_Milk.HumanMilk || __instance?.def == ThingDefOf_Milk.HumanoidMilk)
|
||||
if(__instance?.def == ThingDefOf_Milk.HumanMilk || __instance?.def == ThingDefOf_Milk.HumanoidMilk || __instance?.def == ThingDefOf_Milk.HumanMilkBulk || __instance?.def == ThingDefOf_Milk.HumanoidMilkBulk)
|
||||
{
|
||||
if (ingester.TryGetComp<CompLactation>() == null) return;
|
||||
ingester.TryGetComp<CompLactation>().lastHumanLactationIngestedTick = Find.TickManager.TicksGame;
|
||||
|
|
|
@ -13,10 +13,11 @@ using System.Reflection.Emit;
|
|||
namespace CRIALactation
|
||||
|
||||
{
|
||||
/*
|
||||
[HarmonyPatch(typeof(HumanCompHasGatherableBodyResource), "CompTick")]
|
||||
public static class HarmonyPatch_Milk_HumanCompHasGatherableBodyResource
|
||||
{
|
||||
/*
|
||||
|
||||
public static void Prefix(HumanCompHasGatherableBodyResource __instance)
|
||||
{
|
||||
if (!__instance.parent.IsHashIntervalTick(100))
|
||||
|
@ -45,8 +46,9 @@ namespace CRIALactation
|
|||
p.health.AddHediff(HediffDef.Named("Lactating_Permanent"));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> codeInstructions)
|
||||
{
|
||||
|
||||
|
@ -75,7 +77,7 @@ namespace CRIALactation
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static float AdjustGatherResourceDaysForPrecept(float resourcesIntervalDays, HumanCompHasGatherableBodyResource __instance)
|
||||
{
|
||||
|
||||
|
@ -92,7 +94,9 @@ namespace CRIALactation
|
|||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
[HarmonyPatch(typeof(CompHyperMilkableHuman), "ResourceAmount", MethodType.Getter)]
|
||||
public static class HarmonyPatch_IncreaseYieldForHucowHyperMilkable
|
||||
{
|
||||
|
@ -111,5 +115,5 @@ namespace CRIALactation
|
|||
Pawn p = __instance.parent as Pawn;
|
||||
__result *= p.GetStatValue(StatDefOf_Lactation.MilkProductionYield);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue