def ZoneSave(cls, zoneReference: zone.Zone, saveSlotData: typing.Optional[typing.Any] = None) -> None: for reproductiveSystem in Reproduction.GetAllSystems(): systemPregnancyTracker = reproductiveSystem.GetTracker( FemalesShared.PregnancyTrackerIdentifier ) # type: typing.Optional[PregnancyTracker.PregnancyTracker] if systemPregnancyTracker is not None: systemPregnancyTracker.SetPregnancyVisualsIfAppropriate()
def _SettingsOnUpdateCallback( owner, eventArguments: SettingsBase.UpdateEventArguments) -> None: if eventArguments.Changed(Settings.PregnancySpeed.Key): for simReproductiveSystem in Reproduction.GetAllSystems( automaticallyUpdate=False): pregnancyTracker = simReproductiveSystem.GetTracker( FemalesShared.PregnancyTrackerIdentifier ) # type: typing.Optional[PregnancyTracker.PregnancyTracker] if pregnancyTracker is None: continue simReproductiveSystem.Update()