mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Turn the def in SetEstrus into a ternary
This commit is contained in:
parent
26ca087828
commit
7f2856b6ef
1 changed files with 1 additions and 4 deletions
|
@ -1033,10 +1033,7 @@ namespace RJW_Menstruation
|
|||
|
||||
public void SetEstrus(int days)
|
||||
{
|
||||
HediffDef estrusdef;
|
||||
if (Props.concealedEstrus) estrusdef = VariousDefOf.Hediff_Estrus_Concealed;
|
||||
else estrusdef = VariousDefOf.Hediff_Estrus;
|
||||
|
||||
HediffDef estrusdef = Props.concealedEstrus ? VariousDefOf.Hediff_Estrus_Concealed : VariousDefOf.Hediff_Estrus;
|
||||
HediffWithComps hediff = (HediffWithComps)parent.pawn.health.hediffSet.GetFirstHediffOfDef(estrusdef);
|
||||
if (hediff != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue