mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Use a switch in HighestEstrus
This commit is contained in:
parent
2b5d5443d3
commit
49f52891fe
1 changed files with 10 additions and 3 deletions
|
@ -338,9 +338,16 @@ namespace RJW_Menstruation
|
||||||
|
|
||||||
foreach(HediffComp_Menstruation comp in pawn.GetMenstruationComps())
|
foreach(HediffComp_Menstruation comp in pawn.GetMenstruationComps())
|
||||||
{
|
{
|
||||||
HediffComp_Menstruation.EstrusLevel current = comp.GetEstrusLevel();
|
switch (comp.GetEstrusLevel())
|
||||||
if (current == HediffComp_Menstruation.EstrusLevel.Visible) return HediffComp_Menstruation.EstrusLevel.Visible;
|
{
|
||||||
else if (current == HediffComp_Menstruation.EstrusLevel.Concealed) res = HediffComp_Menstruation.EstrusLevel.Concealed;
|
case HediffComp_Menstruation.EstrusLevel.None:
|
||||||
|
break;
|
||||||
|
case HediffComp_Menstruation.EstrusLevel.Concealed:
|
||||||
|
res = HediffComp_Menstruation.EstrusLevel.Concealed;
|
||||||
|
break;
|
||||||
|
case HediffComp_Menstruation.EstrusLevel.Visible:
|
||||||
|
return HediffComp_Menstruation.EstrusLevel.Visible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue