An NPC in estrus that leaves the map can call ShouldBeInEstrus upon loading the save later, so initialize there if needed.

This commit is contained in:
lutepickle 2022-09-24 19:14:30 -07:00
parent 1427d1ba81
commit 888ae541ed
3 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -1127,6 +1127,8 @@ namespace RJW_Menstruation
protected virtual bool ShouldBeInEstrus()
{
if (!loaded)
Initialize();
switch (curStage)
{
case Stage.Follicular:

View file

@ -1,5 +1,6 @@
Version 1.0.7.5
- Fix error when one womb's concealed estrus is overwritten by another womb's visible estrus.
- Fix error after the game is loaded with an NPC in estrus off-map.
- Fix missing texture error when insect egged with multiple sizes.
- Properly calculate cramp pain falloff again.
- Climacteric and menopause are now per-womb, appearing in the womb dialog instead of as hediffs. Any old hediffs should disappear upon loading the save.