SetEstrus doesn't need a days argument anymore

This commit is contained in:
lutepickle 2022-09-06 16:16:59 -07:00
parent 86210a55d2
commit 3a7cda2d10
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ namespace RJW_Menstruation
|| comp.curStage.Equals(HediffComp_Menstruation.Stage.Anestrus)
)
{
comp.SetEstrus(comp.Props.eggLifespanDays);
comp.SetEstrus();
comp.curStage = HediffComp_Menstruation.Stage.Ovulatory;
comp.ovarypower--;
}
@ -34,7 +34,7 @@ namespace RJW_Menstruation
|| comp.curStage.Equals(HediffComp_Menstruation.Stage.Anestrus)
)
{
comp.SetEstrus(comp.Props.eggLifespanDays);
comp.SetEstrus();
comp.curStage = HediffComp_Menstruation.Stage.Ovulatory;
comp.eggstack += ingested.stackCount - 1;
}

View File

@ -1126,7 +1126,7 @@ namespace RJW_Menstruation
else return Props.concealedEstrus ? EstrusLevel.Concealed : EstrusLevel.Visible;
}
public void SetEstrus(int days)
public void SetEstrus()
{
Hediff hediff = HediffMaker.MakeHediff(Props.concealedEstrus ? VariousDefOf.Hediff_Estrus_Concealed : VariousDefOf.Hediff_Estrus, Pawn);
Pawn.health.AddHediff(hediff);
@ -1379,7 +1379,7 @@ namespace RJW_Menstruation
if (!estrusflag && curStageHrs > currentIntervalHours - Props.estrusDaysBeforeOvulation * 24)
{
estrusflag = true;
SetEstrus(Props.eggLifespanDays + Props.estrusDaysBeforeOvulation);
SetEstrus();
}
StayCurrentStage();
}