mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Fix pawn generation for off-map pawns.
This commit is contained in:
parent
c4f5e6b63c
commit
f909b8cfce
2 changed files with 4 additions and 1 deletions
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 a new issue