hucows can eat anything in exchange for slower movement speed

This commit is contained in:
c0ffee 2022-08-05 22:04:35 -07:00
parent 95e1f5397a
commit 5696aea1c3
5 changed files with 7 additions and 6 deletions

View file

@ -15,8 +15,8 @@
<statFactors> <statFactors>
<MilkProductionYield>2.75</MilkProductionYield> <MilkProductionYield>2.75</MilkProductionYield>
<MilkProductionSpeed>0.5</MilkProductionSpeed> <MilkProductionSpeed>0.5</MilkProductionSpeed>
<WorkSpeedGlobal>0.6</WorkSpeedGlobal> <WorkSpeedGlobal>0.4</WorkSpeedGlobal>
<MoveSpeed>0.6</MoveSpeed> <MoveSpeed>0.4</MoveSpeed>
</statFactors> </statFactors>
</li> </li>
</stages> </stages>

View file

@ -141,7 +141,7 @@
<stages> <stages>
<li> <li>
<label>Ate non-human milk food</label> <label>Ate non-human milk food</label>
<description>I had to eat food that wasn't produced from a person's breasts. My beliefs strictly forbid such things.</description> <description>I had to eat food that wasn't produced from a hucow's breasts. This food should be for hucows only.</description>
<baseMoodEffect>-2</baseMoodEffect> <baseMoodEffect>-2</baseMoodEffect>
</li> </li>
</stages> </stages>
@ -296,7 +296,7 @@
<stages> <stages>
<li> <li>
<label>Ate non-human milk food</label> <label>Ate non-human milk food</label>
<description>Gross! I had to eat food that didn't contain breast milk. This is a disgrace to my beliefs.</description> <description>Gross! I had to eat food that didn't contain breast milk. This kind of food should be for hucows only!</description>
<baseMoodEffect>-4</baseMoodEffect> <baseMoodEffect>-4</baseMoodEffect>
</li> </li>
</stages> </stages>

View file

@ -39,7 +39,8 @@ namespace CRIALactation
} }
else if (ingredients == null 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)); AddThoughtsFromIdeo_Patch(HistoryEventDefOf_Milk.DrankNonMilkMeal, ingester, foodDef, FoodUtility.GetMeatSourceCategory(foodDef));
__result = ___ingestThoughts; __result = ___ingestThoughts;
} }

View file

@ -19,7 +19,7 @@ namespace CRIALactation
protected override ThoughtState ShouldHaveThought(Pawn p) protected override ThoughtState ShouldHaveThought(Pawn p)
{ {
int num = Mathf.Max(0, p.TryGetComp<CompInduceLactation>().lastHumanLactationIngestedTick); int num = Mathf.Max(0, p.TryGetComp<CompInduceLactation>().lastHumanLactationIngestedTick);
return Find.TickManager.TicksGame - num > 480000; return Find.TickManager.TicksGame - num > 480000 && !LactationUtility.IsHucow(p);
} }
public const int MinDaysSinceLastHumanMeatForThought = 8; public const int MinDaysSinceLastHumanMeatForThought = 8;