This commit is contained in:
c0ffee 2021-11-17 11:52:07 -08:00
parent 40c79dd0cd
commit ef4b1dc57e
4 changed files with 24 additions and 13 deletions

View file

@ -48,9 +48,15 @@
<workerClass>CRIALactation.ThoughtWorker_Precept_Lactating_Essential</workerClass>
<stages>
<li>
<label>producing milk</label>
<label>producing milk (hucow)</label>
<description>I'm a good cow to be producing milk. Moo!</description>
<baseMoodEffect>8</baseMoodEffect>
<baseMoodEffect>7</baseMoodEffect>
</li>
<li>
<label>producing milk</label>
<description>I'm glad I can support my colony by producing some milk.</description>
<baseMoodEffect>3</baseMoodEffect>
</li>
<li>

View file

@ -23,28 +23,30 @@ namespace CRIALactation
return false;
}
if(!LactationUtility.HasMilkableBreasts(p))
{
return false;
}
if(LactationUtility.IsLactating(p))
if (LactationUtility.IsHucow(p))
{
return ThoughtState.ActiveAtStage(0);
}
if (LactationUtility.IsLactating(p))
{
return ThoughtState.ActiveAtStage(1);
}
if(ExpectationsUtility.CurrentExpectationFor(p).order <= ExpectationDefOf.VeryLow.order)
{
return ThoughtState.ActiveAtStage(1);
return ThoughtState.ActiveAtStage(2);
}
else if(ExpectationsUtility.CurrentExpectationFor(p).order <= ExpectationDefOf.Moderate.order)
{
return ThoughtState.ActiveAtStage(2);
return ThoughtState.ActiveAtStage(3);
}
else
{
return ThoughtState.ActiveAtStage(3);
return ThoughtState.ActiveAtStage(4);
}
}
}

View file

@ -17,24 +17,27 @@ namespace CRIALactation
if (!LactationUtility.HasMilkableBreasts(otherPawn)) return false;
if(LactationUtility.IsLactating(otherPawn))
if (LactationUtility.IsHucow(otherPawn))
{
return ThoughtState.ActiveAtStage(0);
}
else if (LactationUtility.IsLactating(otherPawn))
{
return ThoughtState.ActiveAtStage(1);
}
if (ExpectationsUtility.CurrentExpectationFor(p).order <= ExpectationDefOf.VeryLow.order)
{
return ThoughtState.ActiveAtStage(1);
return ThoughtState.ActiveAtStage(2);
}
else if (ExpectationsUtility.CurrentExpectationFor(p).order <= ExpectationDefOf.Moderate.order)
{
return ThoughtState.ActiveAtStage(2);
return ThoughtState.ActiveAtStage(3);
}
else
{
return ThoughtState.ActiveAtStage(3);
return ThoughtState.ActiveAtStage(4);
}
}