Browse Source

[fixed] lactation would not start in some cases after childbirth. Added a line that switches on lactation during childbirth of lactation is not active already.

Sandra Schulz 5 years ago
parent
commit
4569cf2277
1 changed files with 2 additions and 0 deletions
  1. 2 0
      locations/femcyc.qsrc

+ 2 - 0
locations/femcyc.qsrc

@@ -662,6 +662,8 @@ if $ARGS[0] = 'preg':
 	temprand -= (babyembryo-1)*588
 	if PregChem > 6573 + temprand and preg ! 2:
 		'A sharp pain pierces your abdomen, and you feel something flow down your legs. Your water has broken!'
+		!!	switch on lactation if not already active.
+		if lactation['active'] < 1: func('lact_lib','lact_switch')
 		$cycreport_txt = 'In labour'
 		arrmodtmp =arrsize('$ChildFath')
 		arrmodtmp -= (babyembryo+1)