From 5696aea1c336b25347b0eda188331f87d43eaa4f Mon Sep 17 00:00:00 2001 From: c0ffee Date: Fri, 5 Aug 2022 22:04:35 -0700 Subject: [PATCH] hucows can eat anything in exchange for slower movement speed --- .../1.3/Assemblies/CRIALactation.dll | Bin 26112 -> 26112 bytes .../Defs/HediffDefs/Hediffs_Hucow.xml | 4 ++-- .../Defs/PreceptDefs/Precepts_Lactating.xml | 4 ++-- .../HarmonyPatch_FoodUtility.cs | 3 ++- ...ThoughtWorker_Precept_NoRecentHumanMilk.cs | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CRIALactation/1.3/Assemblies/CRIALactation.dll b/CRIALactation/1.3/Assemblies/CRIALactation.dll index 69dc4be3ac66d304ab23c2bfa8c88c4ee92c2fc0..a359011f4c4641aba390d61b96fb3d82c2a1b5e8 100644 GIT binary patch delta 1433 zcmY+^Z)jUp7zXg?B=^4I_Mi8*Yq(95tetI>HBFn;xy|n0Cr7%4%93WKqMGB6<96j$hsPKx%!7&1S&Iwp(_=O$7o8Tp}xV;TaWYAcUw|JFe21l2xU$nGCx4<#)X%|fzh&M7qkBz3axkprv^P=< zzR*hAVQR&^)`hkNh0)NnHa9>nw$~_vXQhhn!_8lsQM@Mgp6fRgqL|G~R<|JKeIKVn`=M{TaN{;!_;Hl&XkhLTU;-K#1e8)@M=|6L~Q>g--S; zADl=kjWe6G~&o?7CYy#vcWVqVp?m}8lw*Upmi`ZPMh$T)+Z6u zxEF4(nj1AtqYI3KVoVMVN z0Z~!Kkad!_;bSRv7ehF_E`}j|E49pyo5Y{^yp|v7;2O?~Z&|jM-0x@yc1z`#+1XaH z^(h@b)0X9$RAO&BKk}^=ExY*KWI0oryvZzi5d<4~6?w;goxhJj^J`J`V?# z@|Gy{P}bpQ=K|mQtClGAa7ju%7!TK_)UWrjBK0obXP5ch>UzfbTx5%^mv`YKswIx* zWA=V^wETnaRq|0*lxOqtsSd@_d>qx;W%~x-c~wgs&BxzT>MndVZM|EVgRLbBbC^`J zB5k)RhZl5qb`!t+9QNx_6y{LSVbuwQa#*Nb>Ha=tf0eeEMhA#0;nm*`ROZK$ mjm=&9-&6GF#OID;XP9M5&eK;aP5W*I1EYS$nY_-5nb3a==?Rhm delta 1417 zcmY+^Ur1Y500!{yB)KPztzE8~aE&olYfKuAM!Qz0_h!P%Y?*?Nj5!8v8NwcBx3LvE zs$GzdIi;oI z5cR@QwY^FmH4w{@4=)R)jAsgFH9uY#8aAu~3O`1Yf?0f@=d$^6BPT4yLe9ieEd5Xa zsChRFn`kM5AznX^w+by9z!4!?5kNv{5G|kx;3K7vh36 z8PdVBFNG#C?a~|pgb(qNlUOU#90$;^wB_oeW%x#E+}BMju&OlW(;Nrkj>vhP4$V=C z;}P)wNtEVy(;((VC@-oCi$YnH*iX_boT%m#<(a}r2xZZ*?^PPcYdKj2@2IS9-@-7JPZwOoIY zqlNF$7z`n~N(>1hd5C(P=1L-q7xrGF^%xRi7Pt3*MjLQfsnIn>zO*G z$a(!oHuSQRyWm-teJaH33Db8f&BE_O@-8f_tBl`892-i!Fpkcnvd~w&LF4F_ zBDX5o<;QVKg}gA1UKM6_n=_7?%;VrfwfpUa=Rn1Y_KpwY&#zzn^Oq}`J6+-Y0=N37 l2 2.75 0.5 - 0.6 - 0.6 + 0.4 + 0.4 diff --git a/CRIALactation/Defs/PreceptDefs/Precepts_Lactating.xml b/CRIALactation/Defs/PreceptDefs/Precepts_Lactating.xml index 07554e5..60fe8b2 100644 --- a/CRIALactation/Defs/PreceptDefs/Precepts_Lactating.xml +++ b/CRIALactation/Defs/PreceptDefs/Precepts_Lactating.xml @@ -141,7 +141,7 @@
  • - I had to eat food that wasn't produced from a person's breasts. My beliefs strictly forbid such things. + I had to eat food that wasn't produced from a hucow's breasts. This food should be for hucows only. -2
  • @@ -296,7 +296,7 @@
  • - Gross! I had to eat food that didn't contain breast milk. This is a disgrace to my beliefs. + Gross! I had to eat food that didn't contain breast milk. This kind of food should be for hucows only! -4
  • diff --git a/CRIALactation/Source/HarmonyPatches/HarmonyPatch_FoodUtility.cs b/CRIALactation/Source/HarmonyPatches/HarmonyPatch_FoodUtility.cs index 85e672f..ab9e28b 100644 --- a/CRIALactation/Source/HarmonyPatches/HarmonyPatch_FoodUtility.cs +++ b/CRIALactation/Source/HarmonyPatches/HarmonyPatch_FoodUtility.cs @@ -39,7 +39,8 @@ 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))) + && !LactationUtility.IsHucow(ingester)) { AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankNonMilkMeal, ingester, foodDef, FoodUtility.GetMeatSourceCategory(foodDef)); __result = ___ingestThoughts; } diff --git a/CRIALactation/Source/Thoughts/ThoughtWorker_Precept_NoRecentHumanMilk.cs b/CRIALactation/Source/Thoughts/ThoughtWorker_Precept_NoRecentHumanMilk.cs index cf208d8..9110034 100644 --- a/CRIALactation/Source/Thoughts/ThoughtWorker_Precept_NoRecentHumanMilk.cs +++ b/CRIALactation/Source/Thoughts/ThoughtWorker_Precept_NoRecentHumanMilk.cs @@ -19,7 +19,7 @@ namespace CRIALactation protected override ThoughtState ShouldHaveThought(Pawn p) { int num = Mathf.Max(0, p.TryGetComp().lastHumanLactationIngestedTick); - return Find.TickManager.TicksGame - num > 480000; + return Find.TickManager.TicksGame - num > 480000 && !LactationUtility.IsHucow(p); } public const int MinDaysSinceLastHumanMeatForThought = 8;