mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
SetEstrus doesn't need a days argument anymore
This commit is contained in:
parent
86210a55d2
commit
3a7cda2d10
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ namespace RJW_Menstruation
|
||||||
|| comp.curStage.Equals(HediffComp_Menstruation.Stage.Anestrus)
|
|| comp.curStage.Equals(HediffComp_Menstruation.Stage.Anestrus)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
comp.SetEstrus(comp.Props.eggLifespanDays);
|
comp.SetEstrus();
|
||||||
comp.curStage = HediffComp_Menstruation.Stage.Ovulatory;
|
comp.curStage = HediffComp_Menstruation.Stage.Ovulatory;
|
||||||
comp.ovarypower--;
|
comp.ovarypower--;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ namespace RJW_Menstruation
|
||||||
|| comp.curStage.Equals(HediffComp_Menstruation.Stage.Anestrus)
|
|| comp.curStage.Equals(HediffComp_Menstruation.Stage.Anestrus)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
comp.SetEstrus(comp.Props.eggLifespanDays);
|
comp.SetEstrus();
|
||||||
comp.curStage = HediffComp_Menstruation.Stage.Ovulatory;
|
comp.curStage = HediffComp_Menstruation.Stage.Ovulatory;
|
||||||
comp.eggstack += ingested.stackCount - 1;
|
comp.eggstack += ingested.stackCount - 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1126,7 +1126,7 @@ namespace RJW_Menstruation
|
||||||
else return Props.concealedEstrus ? EstrusLevel.Concealed : EstrusLevel.Visible;
|
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);
|
Hediff hediff = HediffMaker.MakeHediff(Props.concealedEstrus ? VariousDefOf.Hediff_Estrus_Concealed : VariousDefOf.Hediff_Estrus, Pawn);
|
||||||
Pawn.health.AddHediff(hediff);
|
Pawn.health.AddHediff(hediff);
|
||||||
|
@ -1379,7 +1379,7 @@ namespace RJW_Menstruation
|
||||||
if (!estrusflag && curStageHrs > currentIntervalHours - Props.estrusDaysBeforeOvulation * 24)
|
if (!estrusflag && curStageHrs > currentIntervalHours - Props.estrusDaysBeforeOvulation * 24)
|
||||||
{
|
{
|
||||||
estrusflag = true;
|
estrusflag = true;
|
||||||
SetEstrus(Props.eggLifespanDays + Props.estrusDaysBeforeOvulation);
|
SetEstrus();
|
||||||
}
|
}
|
||||||
StayCurrentStage();
|
StayCurrentStage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue