Fix pawn generation for off-map pawns.

This commit is contained in:
lutepickle 2022-05-30 20:22:47 -07:00
parent c4f5e6b63c
commit f909b8cfce
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -1050,7 +1050,10 @@ namespace RJW_Menstruation
public bool IsBreedingSeason()
{
if (Props.breedingSeason == SeasonalBreed.Always) return true;
switch (GenLocalDate.Season(parent.pawn.Map))
Map map = parent.pawn.Map;
if (map is null) map = Find.AnyPlayerHomeMap;
if (map is null) return true;
switch (GenLocalDate.Season(map))
{
case Season.Spring:
if ((Props.breedingSeason & SeasonalBreed.Spring) != 0) return true;