Fix pawn generation for off-map pawns.
This commit is contained in:
parent
c4f5e6b63c
commit
f909b8cfce
Binary file not shown.
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue