mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Refactor IsBreedingSeason to be a bit cleaner
This commit is contained in:
parent
e09c4aeb97
commit
7f84480bee
1 changed files with 4 additions and 9 deletions
|
@ -1093,23 +1093,18 @@ namespace RJW_Menstruation
|
|||
switch (GenLocalDate.Season(map))
|
||||
{
|
||||
case Season.Spring:
|
||||
if ((Props.breedingSeason & SeasonalBreed.Spring) != 0) return true;
|
||||
break;
|
||||
return (Props.breedingSeason & SeasonalBreed.Spring) != 0;
|
||||
case Season.Summer:
|
||||
case Season.PermanentSummer:
|
||||
if ((Props.breedingSeason & SeasonalBreed.Summer) != 0) return true;
|
||||
break;
|
||||
return (Props.breedingSeason & SeasonalBreed.Summer) != 0;
|
||||
case Season.Fall:
|
||||
if ((Props.breedingSeason & SeasonalBreed.Fall) != 0) return true;
|
||||
break;
|
||||
return (Props.breedingSeason & SeasonalBreed.Fall) != 0;
|
||||
case Season.Winter:
|
||||
case Season.PermanentWinter:
|
||||
if ((Props.breedingSeason & SeasonalBreed.Winter) != 0) return true;
|
||||
break;
|
||||
return (Props.breedingSeason & SeasonalBreed.Winter) != 0;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected Pawn Fertilize()
|
||||
|
|
Loading…
Reference in a new issue