1
0

femcyc.qsrc 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. # femcyc
  2. !! I have to initialize the variables somewhere, maybe in preCUST?
  3. if Luth_Max = 0: LutH_Max = rand(312,360) & !! 13-15 days including ovulation
  4. if Foch_Max = 0: FocH_Max = rand(312,360) & !! 13-15 days including menstruation
  5. if $ARGS[0] = '':
  6. !{Hourly reduction in semen potency}
  7. !{First it sets the array index to the first index, then it checks to be sure the array tracking the age is less than 144 hours. If it is 144 hours old, it kills that index, which should shift the index up. If it is less than 144 hours old, it sets a current potency drop. The drop is 2x or 3x regularly, but during ovulation it is only 1x, to represent the better environment from fertile cervical mucus.}
  8. !{144 hours was selected due to that being approximately the maximum amount of time sperm is viable in the womb (120 would be more accurate, but there is leeway). PLEASE DO NOT CHANGE IT.}
  9. !{The potency drop may seem small in game-time, but is meant to be a reasonable approximation to real life. Avoid unprotected sex within 5 days of ovulation if you want to mitigate your risk.}
  10. !{the 'rcntorgzm' variable is set to determine whether Sveta has orgasmed within the last hour. If she has, a small potency boost for the guys she has slept with in that hour.}
  11. if rcntorgzm = 1:
  12. if rcntorgzmtmp = 1: rcntorgzm = 0 & rcntorgzmtmp = 0
  13. if rcntorgzmtmp = 0: rcntorgzmtmp = 1
  14. end
  15. cumarr_idx = 0
  16. :cumarrloop
  17. if cumarr_idx < arrsize('$cumarrnam'):
  18. if cumarrcpt[cumarr_idx] > 0 and cumarrage[cumarr_idx] < 144:
  19. if rcntorgzm = 1 and cumarrcpt[cumarr_idx] < cumarrppt[cumarr_idx] and cumarrage[cumarr_idx] < 1: cumarrcpt[cumarr_idx] += cumarrppt[cumarr_idx] / 12
  20. cumpdrop = cumarrcpt[cumarr_idx] / (144 - cumarrage[cumarr_idx])
  21. if cycle ! 2: cumpdrop += cumpdrop * rand(0, 2)
  22. cumarrcpt[cumarr_idx] -= cumpdrop
  23. if cumarrcpt[cumarr_idx] <= 0:
  24. gs 'cum_cleanup', 'cleanwomb', cumarr_idx
  25. else
  26. cumarrage[cumarr_idx] += 1
  27. cumarr_idx += 1
  28. end
  29. else
  30. gs 'cum_cleanup', 'cleanwomb', cumarr_idx
  31. end
  32. jump 'cumarrloop'
  33. end
  34. !!Succubus absorption of sperm in womb
  35. if succubusflag = 1:
  36. if arrsize('cumarrppt') > 0:
  37. succycletmp = 0
  38. :sucvagabs
  39. if cumarrdel[succycletmp] = 0:
  40. if cumarrcpt[succycletmp] > 10000:
  41. sexnutrition += 30 * succublvl
  42. succubxp += 3
  43. elseif cumarrcpt[succycletmp] < 3000 and cumarrcpt[succycletmp] > 1000:
  44. sexnutrition += 5 * succublvl
  45. succubxp += 2
  46. elseif cumarrcpt[succycletmp] =< 1000:
  47. sexnutrition += succublvl
  48. else
  49. sexnutrition += 25 * succublvl
  50. succubxp += 3
  51. end
  52. gs 'cum_cleanup', 'cleanwomb', succycletmp
  53. sucabscum = 1
  54. else
  55. succycletmp += 1
  56. end
  57. if succycletmp < arrsize('cumarrppt'): jump 'sucvagabs'
  58. end
  59. killvar 'succycletmp'
  60. end
  61. cumarrtemp = 0
  62. cumcondslip = 0
  63. cumcondslip_aware = 0
  64. if arrsize('sparrvol') > 0:
  65. :cumspaloop
  66. !!Succubus absorption for internal locations other than womb
  67. if succubusflag = 1:
  68. if sparrloc[cumarrtemp] = 3 or sparrloc[cumarrtemp] = 12:
  69. sexnutrition += 25*succublvl
  70. succubxp += 3
  71. sucabscum = 1
  72. if sparrvol[cumarrtemp] > 0: sparrvol[cumarrtemp] = 0
  73. end
  74. end
  75. !!{if sparrloc[cumarrtemp] = 0 or sparrloc[cumarrtemp] = 3 or sparrloc[cumarrtemp] = 12:
  76. sexnutrition += 30*succublvl
  77. sparrvol[cumarrtemp] -= 30*succublvl
  78. if sparrvol[cumarrtemp] < 0: sexnutrition += sparrvol[cumarrtemp] & sparrvol[cumarrtemp] = 0
  79. end}
  80. !!{ Process spatter until it has volume or is too old in vagina. }
  81. if sparrvol[cumarrtemp] > 0 or (sparrloc[cumarrtemp] = 0 and sparrage[cumarrtemp] < 10):
  82. sparrtmpv = arrsize('$cumarrnam')
  83. if sparrloc[cumarrtemp] = 17:
  84. sparrtmpv = arrpos('cumarrcnt',sparrcnt[cumarrtemp])
  85. if sparrtmpv >= 0:
  86. !!'Found guy id <<sparrtmpv>>'
  87. if sparrage[cumarrtemp] < 4:
  88. cumarrcpt[sparrtmpv] += sparrppt[cumarrtemp]/5
  89. elseif sparrage[cumarrtemp] < 10:
  90. cumarrcpt[sparrtmpv] += sparrppt[cumarrtemp]/30
  91. end
  92. end
  93. elseif sparrloc[cumarrtemp] = 0:
  94. sparrtmpv = arrpos('cumarrcnt',sparrcnt[cumarrtemp])
  95. if sparrtmpv >= 0:
  96. !!'Found guy id' & sparrtmpv
  97. if sparrage[cumarrtemp] < 4:
  98. cumarrcpt[sparrtmpv] += sparrppt[cumarrtemp]/40
  99. elseif sparrage[cumarrtemp] < 10:
  100. cumarrcpt[sparrtmpv] += sparrppt[cumarrtemp]/60
  101. end
  102. end
  103. elseif sparrslc[cumarrtemp] = 1 and sparrage < 5:
  104. if sparrloc[cumarrtemp] = 1:
  105. cumarrcpt[sparrtmpv] = sparrppt[cumarrtemp]*sparrvol[cumarrtemp]/sparrage[cumarrtemp]/1000
  106. cumarrppt[sparrtmpv] = sparrppt[cumarrtemp]
  107. $cumarrnam[sparrtmpv] = $sparrnam[cumarrtemp]
  108. cumarrage[sparrtmpv] = sparrage[cumarrtemp]
  109. cumarrdel[sparrtmpv] = 1
  110. cumarrkno[sparrtmpv] = -1
  111. cumarrcon[sparrtmpv] = 0
  112. cumarrcnt[sparrtmpv] = sparrcnt[cumarrtemp]
  113. end
  114. elseif sparrslc[cumarrtemp] = 3 and sparrage < 5:
  115. if sparrloc[cumarrtemp] = 2:
  116. cumarrcpt[sparrtmpv] = sparrppt[cumarrtemp]*sparrvol[cumarrtemp]/sparrage[cumarrtemp]/1000
  117. cumarrppt[sparrtmpv] = sparrppt[cumarrtemp]
  118. $cumarrnam[sparrtmpv] = $sparrnam[cumarrtemp]
  119. cumarrage[sparrtmpv] = sparrage[cumarrtemp]
  120. cumarrdel[sparrtmpv] = 3
  121. cumarrkno[sparrtmpv] = -1
  122. cumarrcon[sparrtmpv] = 0
  123. cumarrcnt[sparrtmpv] = sparrcnt[cumarrtemp]
  124. elseif sparrloc[cumarrtemp] = 4:
  125. cumarrcpt[sparrtmpv] = sparrppt[cumarrtemp]*sparrvol[cumarrtemp]/sparrage[cumarrtemp]/1000
  126. cumarrppt[sparrtmpv] = sparrppt[cumarrtemp]
  127. $cumarrnam[sparrtmpv] = $sparrnam[cumarrtemp]
  128. cumarrage[sparrtmpv] = sparrage[cumarrtemp]
  129. cumarrdel[sparrtmpv] = 2
  130. cumarrkno[sparrtmpv] = -1
  131. cumarrcon[sparrtmpv] = 0
  132. cumarrcnt[sparrtmpv] = sparrcnt[cumarrtemp]
  133. end
  134. elseif sparrslc[cumarrtemp] = 5 and sparrage < 5:
  135. if sparrloc[cumarrtemp] = 3:
  136. cumarrcpt[sparrtmpv] = sparrppt[cumarrtemp]*sparrvol[cumarrtemp]/sparrage[cumarrtemp]/1000
  137. cumarrppt[sparrtmpv] = sparrppt[cumarrtemp]
  138. $cumarrnam[sparrtmpv] = $sparrnam[cumarrtemp]
  139. cumarrage[sparrtmpv] = sparrage[cumarrtemp]
  140. cumarrdel[sparrtmpv] = 2
  141. cumarrkno[sparrtmpv] = -1
  142. cumarrcon[sparrtmpv] = 0
  143. cumarrcnt[sparrtmpv] = sparrcnt[cumarrtemp]
  144. elseif sparrloc[cumarrtemp] = 5:
  145. cumarrcpt[sparrtmpv] = sparrppt[cumarrtemp]*sparrvol[cumarrtemp]/sparrage[cumarrtemp]/1000
  146. cumarrppt[sparrtmpv] = sparrppt[cumarrtemp]
  147. $cumarrnam[sparrtmpv] = $sparrnam[cumarrtemp]
  148. cumarrage[sparrtmpv] = sparrage[cumarrtemp]
  149. cumarrdel[sparrtmpv] = 3
  150. cumarrkno[sparrtmpv] = -1
  151. cumarrcon[sparrtmpv] = 0
  152. cumarrcnt[sparrtmpv] = sparrcnt[cumarrtemp]
  153. elseif sparrloc[cumarrtemp] = 6:
  154. cumarrcpt[sparrtmpv] = sparrppt[cumarrtemp]*sparrvol[cumarrtemp]/sparrage[cumarrtemp]/1000
  155. cumarrppt[sparrtmpv] = sparrppt[cumarrtemp]
  156. $cumarrnam[sparrtmpv] = $sparrnam[cumarrtemp]
  157. cumarrage[sparrtmpv] = sparrage[cumarrtemp]
  158. cumarrdel[sparrtmpv] = 3
  159. cumarrkno[sparrtmpv] = -1
  160. cumarrcon[sparrtmpv] = 0
  161. cumarrcnt[sparrtmpv] = sparrcnt[cumarrtemp]
  162. end
  163. end
  164. if sparrloc[cumarrtemp] = 0 or sparrloc[cumarrtemp] = 3 or sparrloc[cumarrtemp] = 12:
  165. sparrvol[cumarrtemp] -= sparrage[cumarrtemp]/2
  166. if sparrvol[cumarrtemp] < 0:sparrvol[cumarrtemp] = 0
  167. end
  168. if sparrloc[cumarrtemp] = 0 and cumsumvag > 60: sparrslc[cumarrtemp] = 1
  169. if sparrloc[cumarrtemp] = 3 and cumsumass > 60: sparrslc[cumarrtemp] = 1
  170. if sparrloc[cumarrtemp] = 17:
  171. cumcondslip += 1
  172. if sparridt[cumarrtemp] >= 0:
  173. cumcondslip_aware = 1
  174. end
  175. if sparrage[cumarrtemp] > 48:
  176. cumcondslip_aware = 1
  177. pcs_health -= rand(3,sparrage[cumarrtemp] - 45)
  178. '<br><b><font color="red">You feel nauseous.</font></b>'
  179. end
  180. end
  181. if sparrloc[cumarrtemp] ! 0 and sparrloc[cumarrtemp] ! 3 and sparrloc[cumarrtemp] ! 12 and isprok = 0 and sparrage < 5: sparrslc[cumarrtemp] += 1
  182. sparrage[cumarrtemp] += 1
  183. cumarrtemp += 1
  184. ctemp[0] += sparrvol[cumarrtemp]
  185. if sparrloc[cumarrtemp] = 0: ctemp[1] += sparrvol[cumarrtemp]
  186. if sparrloc[cumarrtemp] = 3: ctemp[2] += sparrvol[cumarrtemp]
  187. else
  188. gs 'cum_cleanup', 'cleandeposit', cumarrtemp
  189. end
  190. if cumarrtemp < arrsize('sparrvol'): jump 'cumspaloop'
  191. cumsumbod = ctemp[0]
  192. cumsumvag = ctemp[1]
  193. cumsumass = ctemp[2]
  194. KILLVAR 'ctemp'
  195. end
  196. !! new milkgrowday function.
  197. !! Not lactating yet, but there was milkdemand, meaning someone worked your nipples and breasts.
  198. if lactate = 0 and milkoverdemand >= 0 and prolactinlvl >= 0:
  199. !! Even if Sveta doesn''t massage her breasts or pumps proactively, NPCs will work her breasts eventually. This can cause her to lactate without knowledge.
  200. if rand(1,50) + prolactinlvl >= rand(200,250) and milkinduceday >= 5:
  201. lactateinduced = 0
  202. pcs_knowsaboutlactation = 0
  203. lactate = 1
  204. if func('lact_lib','$calc_lactatemm') > 0: lactatemm = func('lact_lib','$calc_lactatemm')
  205. if prolactinlvl < 200: prolactinlvl = 200
  206. lactaterate = 10*(prolactinlvl/200)
  207. pcs_nips += 2
  208. pumpinggrowth = 0
  209. end
  210. if milkgrowday < daystart:
  211. temp_var = milkoverdemand/200
  212. if temp_var >= 10 and pregtimes <= 0: temp_var = 10
  213. if temp_var >= 50 and pregtimes > 0: temp_var = 50
  214. if temp_var <= 0 and milkoverdemand >0:
  215. prolactinlvl += 1
  216. else
  217. prolactinlvl += temp_var
  218. end
  219. !! if sveta had no kid, milk induction will take a while as her breasts need to change alot.
  220. if prolactinlvl >= 150 and kid <= 0 and pregtimes <= 0:milkinduceday += 1
  221. if prolactinlvl >= 100 and kid <= 0 and pregtimes <= 0 and pain['breasts'] <= 20: pain['breasts'] = 20
  222. !! as long as your tits are not over 11 growth will happen to them. If you do not pump or no pregnancy happens, no growth will happen.
  223. if milkoverdemand = 0 and pregchem = 0 and tits < 11:
  224. temp_var = prolactinlvl - 10
  225. if temp_var <= 0:
  226. prolactinlvl = 0
  227. end
  228. !! if prolactinlvl is sinking too much, the aveoli will deflate and thus the breasts growth is reverted. This only counts for induced lactation. If natural lactation occurs breasts will shrink a bit too, but stay bigger in total.
  229. if prolactinlvl < 100 and total_milkinduce_growth > 0:
  230. nbsize -= total_milkinduce_growth
  231. total_milkinduce_growth = 0
  232. if prolactinlvl > 10:
  233. prolactinlvl -= 10
  234. else
  235. prolactinlvl = 0
  236. end
  237. else
  238. if prolactinlvl > 10:
  239. prolactinlvl -= 10
  240. else
  241. prolactinlvl = 0
  242. end
  243. end
  244. milkoverdemand = 0
  245. milkgrowday = daystart
  246. elseif milkoverdemand > 0 and pregchem = 0 and tits < 11:
  247. !! inducing without ever being pregnant
  248. if prolactinlvl > 100 and kid <= 0:
  249. if total_milkinduce_growth < 8:
  250. total_milkinduce_growth += 1 + pumpinggrowth
  251. nbsize += 1 + pumpinggrowth
  252. pumpinggrowth = 0
  253. else
  254. pumpinggrowth = 0
  255. end
  256. !! inducing after being pregnant
  257. elseif prolactinlvl > 100 and kid > 0:
  258. if total_milkinduce_growth < (total_preg_growth/2):
  259. total_milkinduce_growth += 1 + pumpinggrowth
  260. nbsize += 1 + pumpinggrowth
  261. pumpinggrowth = 0
  262. end
  263. end
  264. milkoverdemand = 0
  265. elseif milkoverdemand >= 0 and pregchem > 0 and tits < 11:
  266. if prolactinlvl > 100 and pregchem < 3000 and kid <= 0:
  267. if total_milkinduce_growth < 8:
  268. total_milkinduce_growth += 1 + pumpinggrowth
  269. nbsize += 1 + pumpinggrowth
  270. pumpinggrowth = 0
  271. else
  272. pumpinggrowth = 0
  273. end
  274. !! first breast growth with first pregnancy
  275. elseif prolactinlvl >= 100 and pregchem >= 2000 and pregchem < 3000 and kid <= 0:
  276. if rand(0,100) > 55:
  277. first_preg_growth += 1
  278. total_preg_growth += 1
  279. if total_preg_growth > total_milkinduce_growth: nbsize += 1
  280. end
  281. !! there is little chance your breast grow additional sizes if you have more kids.
  282. elseif prolactinlvl >= 100 and pregchem >= 2000 and pregchem < 3000 and kid > 0:
  283. if first_preg_growth > total_preg_growth:
  284. total_preg_growth += 1
  285. if total_preg_growth > total_milkinduce_growth: nbsize += 1
  286. else
  287. if rand(0,100) > 95:
  288. total_preg_growth += 1
  289. if total_preg_growth > total_milkinduce_growth: nbsize += 1
  290. end
  291. end
  292. !! inducing after being pregnant
  293. elseif prolactinlvl > 100 and pregchem =< 3000 and kid > 0:
  294. if total_milkinduce_growth < (total_preg_growth/2):
  295. total_milkinduce_growth += 1 + pumpinggrowth
  296. nbsize += 1 + pumpinggrowth
  297. pumpinggrowth = 0
  298. end
  299. end
  300. milkoverdemand = 0
  301. milkgrowday = daystart
  302. end
  303. milkgrowday = daystart
  304. else
  305. milkgrowday = daystart
  306. end
  307. elseif lactate > 0 and milkoverdemand => 0 and prolactinlvl >= 0:
  308. lactatemm = func('lact_lib','$calc_lactatemm')
  309. !! checking if induced or not and if girl went through pregnancy already.
  310. if lactateinduced > 0 and kid <= 0:
  311. if milkgrowday < daystart:
  312. !! first breast growth with first pregnancy
  313. if prolactinlvl >= 100 and pregchem >= 2000 and pregchem < 3000 and kid <= 0:
  314. if rand(0,100) > 55:
  315. first_preg_growth += 1
  316. total_preg_growth += 1
  317. if total_preg_growth > total_milkinduce_growth: nbsize += 1
  318. end
  319. end
  320. if lactatemm > lactatemv and salo > 11:
  321. lactatemv += lactaterate
  322. temp_var = lactaterate/100
  323. if temp_var <= 0: temp_var = 1
  324. pcs_energy -= temp_var
  325. if lactatemv > lactatemm: lactatemv = lactatemm
  326. end
  327. if milkoverdemand > 0 and breastpumped > 0:
  328. !! lactationrate growing, so you make more milk the more demand there was in the day before.
  329. temp_var = prolactinlvl + milkoverdemand/20
  330. if temp_var > 120:
  331. prolactinlvl += milkoverdemand/20
  332. !! uppon reaching a specific limit, the lactationrate will grow slower. Human body limits etc... you know
  333. if lactaterate > 3500:
  334. lactaterate += 5*(prolactinlvl/200)
  335. elseif lactaterate > 6000:
  336. lactaterate += prolactinlvl/200
  337. else
  338. lactaterate += 10*(prolactinlvl/200)
  339. end
  340. prolactinlvl = 100
  341. else
  342. prolactinlvl = 100
  343. end
  344. if pcs_knowsaboutlactation > 0:
  345. 'Your breasts tingle a bit more from milkproduction.'
  346. else
  347. 'Your breasts tingle a bit weirdly.'
  348. end
  349. elseif milkoverdemand = 0 and breastpumped > 0:
  350. prolactinlvl = 100
  351. elseif milkoverdemand = 0 and breastpumped = 0:
  352. if lactaterate > 0 and pregchem >=0:
  353. temp_var = lactaterate/4
  354. if temp_var < 1:temp_var = 0
  355. lactaterate = temp_var
  356. if pcs_knowsaboutlactation > 0:
  357. 'Your breasts tingle a little less from milkproduction.'
  358. else
  359. 'The tingling in your breasts eases down.'
  360. end
  361. elseif lactaterate = 0 and pregchem < 1000:
  362. lactate = 0
  363. lactateinduced = 0
  364. nbsize -= total_milkinduce_growth
  365. milkinduceday = 0
  366. if pcs_knowsaboutlactation > 0:
  367. 'You notice that you stopped lactating.'
  368. else
  369. 'Your breasts feel eased today.'
  370. end
  371. elseif lactaterate = 0 and pregchem >= 1000:
  372. lactaterate = 1
  373. else
  374. lactaterate = 0
  375. end
  376. end
  377. milkgrowday = daystart
  378. milkoverdemand = 0
  379. breastpumped = 0
  380. else
  381. milkgrowday = daystart
  382. if lactatemm >= lactatemv and salo > 11:
  383. if lactaterate > lactaterate_use:
  384. temp_lactaterate = lactaterate_use
  385. else
  386. temp_lactaterate = lactaterate
  387. end
  388. lactatemv += temp_lactaterate
  389. lactaterate_use = lactaterate
  390. if lactatemv > lactatemm:
  391. lactatemv = lactatemm
  392. lact_engorgement += 1
  393. if lact_engorgement > 2: lactatemess += 1
  394. end
  395. end
  396. end
  397. milkgrowday = daystart
  398. else
  399. if milkgrowday < daystart:
  400. if lactatemm > lactatemv and salo > 11:
  401. lactatemv += lactaterate
  402. temp_var = lactaterate/100
  403. if temp_var <= 0: temp_var = 1
  404. pcs_energy -= temp_var
  405. if lactatemv > lactatemm: lactatemv = lactatemm
  406. end
  407. if milkoverdemand > 0 and breastpumped > 0:
  408. !! lactationrate growing, so you make more milk the more demand there was in the day before.
  409. temp_var = prolactinlvl + milkoverdemand/10
  410. if temp_var > rand(150,200):
  411. prolactinlvl += milkoverdemand/20
  412. !! uppon reaching a specific limit, the lactationrate will grow slower. Human body limits etc... you know :D
  413. if lactaterate > 3500:
  414. lactaterate += 5*(prolactinlvl/200)
  415. elseif lactaterate > 6000:
  416. lactaterate += prolactinlvl/200
  417. else
  418. lactaterate += 10*(prolactinlvl/200)
  419. end
  420. prolactinlvl = 100
  421. else
  422. prolactinlvl = 100
  423. end
  424. if pcs_knowsaboutlactation > 0:
  425. 'Your breasts tingle a bit more from milkproduction.'
  426. else
  427. 'Your breasts tingle a bit weirdly.'
  428. end
  429. elseif milkoverdemand = 0 and breastpumped > 0:
  430. prolactinlvl = 100
  431. else
  432. if lactaterate > 0 and pregchem >= 0:
  433. temp_var = lactaterate/8
  434. if temp_var < 1:temp_var = 0
  435. lactaterate = temp_var
  436. milkoverdemand = 0
  437. if pcs_knowsaboutlactation > 0:
  438. 'Your breasts tingle a little less from milkproduction.'
  439. else
  440. 'The tingling in your breasts eases down.'
  441. end
  442. elseif lactaterate = 0 and pregchem < 1000:
  443. lactate = 0
  444. lactateinduced = 0
  445. if total_milkinduce_growth > 0: nbsize -= total_milkinduce_growth
  446. if total_preg_growth > 0:
  447. nbsize -= total_preg_growth
  448. nbsize += first_preg_growth/2
  449. end
  450. total_milkinduce_growth = 0
  451. milkoverdemand = 0
  452. if pcs_knowsaboutlactation > 0:
  453. 'You notice that you stopped lactating.'
  454. else
  455. 'Your breasts feel eased today.'
  456. end
  457. elseif lactaterate = 0 and pregchem >= 1000:
  458. lactaterate = 1
  459. else
  460. lactaterate = 0
  461. end
  462. end
  463. milkgrowday = daystart
  464. milkoverdemand = 0
  465. breastpumped = 0
  466. else
  467. milkgrowday = daystart
  468. if lactatemm >= lactatemv and salo > 11:
  469. if lactaterate > lactaterate_use:
  470. temp_lactaterate = lactaterate_use
  471. else
  472. temp_lactaterate = lactaterate
  473. end
  474. lactatemv += temp_lactaterate
  475. lactaterate_use = lactaterate
  476. if lactatemv > lactatemm:
  477. lactatemv = lactatemm
  478. lact_engorgement += 1
  479. if lact_engorgement > 2: lactatemess += 1
  480. end
  481. end
  482. end
  483. milkgrowday = daystart
  484. end
  485. milkgrowday = daystart
  486. end
  487. if cycle <= 0:
  488. gs 'femcyc', 'cyc0'
  489. elseif cycle = 1:
  490. gs 'femcyc', 'cyc1'
  491. elseif cycle = 2:
  492. gs 'femcyc', 'cyc2'
  493. elseif cycle = 3:
  494. gs 'femcyc', 'cyc3'
  495. elseif cycle = 4:
  496. gs 'femcyc', 'cyc4'
  497. elseif cycle = 5:
  498. gs 'femcyc', 'preg'
  499. end
  500. dynamic $d_cycreport_update
  501. end
  502. !{Menstruation to Follicular. Verifies that the cycle is in the bloody phase. It then checks to see if you are done bleeding. If you are, it starts the Follicular phase. There is a small chance your follcular phase will be anywhere from a day to 3 days short, done by the random release of a boosted EggRH. Otherwise, it just starts it clean.}
  503. if $ARGS[0] = 'cyc0':
  504. if mesec <= 0:
  505. lastmens = daystart
  506. cycle = 1
  507. mesec = 0
  508. if rand(0,1000) = 1000:
  509. EggRH = rand(20,80)
  510. else
  511. EggRH = 0
  512. end
  513. FocH += EggRH
  514. else
  515. mesec -= 1
  516. FocH += 1
  517. end
  518. end
  519. !{Follicular to Ovulation. It checks to see if you are on the Follicular phase. If you are, it checks to see if you are ready to ovulate. If you arent, it increases your ovulation ticker by 1, then gives a random chance to increase it again. Then it checks to see if you have ovarian problems, and if you do, decreases your ovulation ticker. When all that is done, it checks to see if you have any birth control chemical, and if its above a certain amount, it reduces your ovulation ticker.}
  520. if $ARGS[0] = 'cyc1':
  521. FertEgg = 0
  522. if FocH <= FocH_Max:
  523. if pillcon <= 7000: EggRH += 1
  524. if rand(0,9) = 0: EggRH += 1
  525. FocH += 1
  526. temprand = rand(0,9) - sterileov + tempovbonus
  527. if temprand < 0:
  528. EggRH -= 1
  529. elseif temprand > 9:
  530. EggRH += 1
  531. end
  532. else
  533. !! the setting of the max_time can be here although it can be changed in the future
  534. LutH_Max = rand(312,360) & !! 13-15 days including ovulation
  535. !{If you are ready to ovulate, it creates a chance to double ovulate. That chance is increased by your age. Then it does the same for a triple ovulation. Then it sets the ovulation tag, ovulation hour count, and begins a ticker for the life of the eggs.}
  536. Temprand = rand(0,20)
  537. Temprand += age/15
  538. Temprand -= pillcon/1000
  539. if temprand > 20:
  540. EggRH += 205
  541. Temprand = rand(0,20)
  542. Temprand += age/15
  543. if temprand > 20: EggRH += 410
  544. end
  545. FocH = 0
  546. lastovulation = daystart
  547. Ovulate = 24 + rand(0,20)
  548. cycle = 2
  549. ferteggage = 0
  550. end
  551. end
  552. !!{Fertilization.}
  553. if $ARGS[0] = 'cyc2':
  554. can_sz = arrsize('$cumarrnam')
  555. if Ovulate > 0 and can_sz > 0 and UnfertEgg > 0:
  556. KILLVAR 'cumtime'
  557. KILLVAR 'cumfthname'
  558. KILLVAR '$wombpotfath'
  559. $cumfthname[0] = 'unknown'
  560. cumtime[0] = 0
  561. can_idx = 0
  562. cum_total = 0
  563. !!{Compute array of unique fathers known to PC and another two arrays of unique total fathers and their individual sperm totals from all entries in cumarrcpt for that father. Also tally all cum present.}
  564. :FatherCumAnalyze
  565. !! If the current DNA is new (no occurence in the womb array), it is added to the end of $wombDNA array, and added the amount of cum to the end of cumamount array.
  566. !! If exists, just increase the amount of cum in the womb.
  567. !! $wombDNA: sperm in womb potent enough to cause pregnancy
  568. !! wombAmount: how potent is the sperm of a guy
  569. !! $wombName: the name of the NPC
  570. y = arrsize('$wombDNA')
  571. if arrpos('$wombDNA',$npc_dna[$cumarrnam[can_idx]]) = -1:
  572. !! New guy, create place for him at the end of the array, storing his DNA, sperm amount and name
  573. $wombDNA[y] = $npc_dna[$cumarrnam[can_idx]]
  574. wombAmount[y] = cumarrcpt[can_idx]
  575. $wombName[y] = $cumarrnam[can_idx]
  576. else
  577. !! This DNA is in the womb, but does it belong to the same guy?
  578. x = 0
  579. z = 0
  580. :LocalizeLoop
  581. if $wombDNA[x] = $npc_dna[$cumarrnam[can_idx]] and $wombName[x] = $cumarrnam[can_idx]: wombAmount[x] += cumarrcpt[can_idx] & z = 1
  582. if z = 0 and x < (y - 1):x += 1 & jump 'LocalizeLoop'
  583. killvar 'x'
  584. if z = 0:
  585. !! Since the DNA and the stored name does not match at the same time, it means this is a twin situation where the twin is not in array, so put him in
  586. $wombDNA[y] = $npc_dna[$cumarrnam[can_idx]]
  587. $wombName[y] = $cumarrnam[can_idx]
  588. wombAmount[y] = cumarrcpt[can_idx]
  589. end
  590. killvar 'z'
  591. end
  592. killvar 'y'
  593. if cumarrkno[can_idx] = 1 and arrpos('$wombpotfath', $cumarrnam[can_idx]) < 0:$wombpotfath[arrsize('$wombpotfath')] = $cumarrnam[can_idx]
  594. !! If the guy is a known/possible element (PC know about the sex, it was actual sex, condom/pill was not used or condom was broken, etc.), he can be considered as father.
  595. if instr('14570',str(cumarrcon[can_idx])) > 0 and cumarrdel[can_idx] = 0 and cumarrkno[can_idx] >= 0:
  596. !! If guy is recorded already, increase his cumtime, else record him for the first time.
  597. if arrpos('$cumfthname', $cumarrnam[can_idx]) = -1:
  598. $cumfthname[arrsize('$cumfthname')] = $cumarrnam[can_idx]
  599. cumtime[arrsize('$cumfthname')] = 1
  600. else
  601. cumtime[arrpos('$cumfthname', $cumarrnam[can_idx])] += 1
  602. end
  603. end
  604. cum_total += cumarrcpt[can_idx]
  605. if can_idx < can_sz:can_idx += 1 & jump 'FatherCumAnalyze'
  606. !! setting the default believed father if there is no difficult choice or there is no choice
  607. if arrsize('$cumfthname') = 2 and cumtime[0] = 0:
  608. $wombpotfath[0] = $cumfthname[1]
  609. elseif arrsize('$cumfthname') = 1:
  610. $wombpotfath[0] = $cumfthname[0]
  611. end
  612. !!{Create lotto of potential fathers based on each potential fathers sperm as a percentage of the total. The higher percentage of sperm from a given father, the more lotto entries he will have.}
  613. KILLVAR '$cumfathlotto'
  614. cfw_idx = 0
  615. cfw_sz = arrsize('wombAmount')
  616. :FathLottoLoop
  617. if cfw_idx < cfw_sz:
  618. cfl_ct = (wombAmount[cfw_idx] * 100) / cum_total
  619. if cfl_ct < 1: cfl_ct = 1
  620. cfl_idx = arrsize('$cumfathlotto')
  621. :FathLottoAdd
  622. if cfl_ct > 0:
  623. $cumfathlotto[cfl_idx] = $wombName[cfw_idx]
  624. $cumfatherDNA[cfl_idx] = $wombDNA[cfw_idx]
  625. cfl_idx += 1
  626. cfl_ct -= 1
  627. jump 'FathLottoAdd'
  628. end
  629. cfw_idx += 1
  630. jump 'FathLottoLoop'
  631. end
  632. killvar '$wombDNA'
  633. killvar '$wombName'
  634. killvar 'wombAmount'
  635. cfl_sz = arrsize('$cumfathlotto')
  636. egg_idx = 0
  637. egg_sz = UnfertEgg
  638. if cheat_NoPregnancy = 1:egg_idx = egg_sz
  639. :FertLoop
  640. if egg_idx < egg_sz:
  641. !!{fert_thresh is the chance this specific egg is fertilized. Its modified by being on the pill, being sterilized, the brood curse, and so on. If it computes to less than the cum total calculated above, the egg is fertilized by a father randomly drawn from the lotto array.}
  642. fert_thresh = rand(1,250000)
  643. if pillcon < 0: pillcon = 0
  644. !!fert_thresh += pillcon
  645. if steriletu = 1: fert_thresh += fert_thresh*30
  646. if fert_thresh > 0 and broodcurse > 0: fert_thresh = fert_thresh / 2
  647. if fert_thresh <= cum_total:
  648. lotto_idx = rand(0, cfl_sz-1)
  649. UnfertEgg -= 1
  650. FertEgg += 1
  651. nextbaby = arrsize('$ChildFath')
  652. polkid[nextbaby] = rand(0, 1)
  653. $kidname[nextbaby] = 'unborn'
  654. kidage[nextbaby] = 0
  655. daykid[nextbaby] = 0
  656. monthkid[nextbaby] = 0
  657. yearkid[nextbaby] = 0
  658. Babyptype[nextbaby] = 0
  659. $kid_dna[nextbaby] = func('DNA', 'generate', $pcs_dna, $npc_dna[$cumfathlotto[lotto_idx]])
  660. $ChildFath[nextbaby] = $cumfathlotto[lotto_idx]
  661. $ChildFathDNA[nextbaby] = $cumfatherDNA[lotto_idx]
  662. if arrsize('$wombpotfath') = 1:
  663. $ChildThFath[nextbaby] = $wombpotfath[0]
  664. else
  665. $ChildThFath[nextbaby] = 'unknown'
  666. end
  667. hairkid[nextbaby] = rand(0, 3)
  668. eyeskid[nextbaby] = rand(0, 3)
  669. ChildConType[nextbaby] = cumarrcon[nextbaby]
  670. if fertegg > 1:
  671. $childtype[nextbaby] = 'paternal twin'
  672. $childtype[nextbaby-1] = 'paternal twin'
  673. else
  674. $childtype[nextbaby] = ''
  675. end
  676. end
  677. egg_idx += 1
  678. jump 'FertLoop'
  679. end
  680. killvar 'temp'
  681. tempovbonus = 0
  682. end
  683. !!{Ovulation to Luteal. It checks to see if you are on the ovulation cycle. If you are, it checks you for your pillcon. If it is high enough, no egg is released. Under high concentrations of pill chemical, ovulation ticks away quicker. Otherwise, it checks to see if your ovulation hormone is high enough, and if it is it gives you an egg and drops a good chunk down on your ovulation hormone. if its still high, it drops another egg. Then it checks your ovulation hours. If its down to 0, it starts the Luteal phase. Otherwise, it adds an hour to the egg age and reduces the ovulation window by an hour.}
  684. if pillcon > 26000 and rand(0,400) ! 0: EggRH = 0
  685. :OviLoop
  686. If EggRH > ((UnfertEgg + FertEgg) * 150):
  687. UnfertEgg += 1
  688. EggRH -= (200 * UnfertEgg)
  689. jump 'OviLoop'
  690. end
  691. If ovulate <= 0:
  692. cycle = 3
  693. UnfertEgg = 0
  694. end
  695. if fertegg = 1 and ferteggage < 330:
  696. if rand(0,(2000 - age*20)) = 0:
  697. fertegg += 1
  698. nextbaby = arrsize('$ChildFath')
  699. polkid[nextbaby] = polkid[nextbaby-1]
  700. $kidname[nextbaby] = 'unborn'
  701. kidage[nextbaby] = 0
  702. daykid[nextbaby] = 0
  703. monthkid[nextbaby] = 0
  704. yearkid[nextbaby] = 0
  705. Babyptype[nextbaby] = Babyptype[nextbaby-1]
  706. $ChildFath[nextbaby] = $ChildFath[nextbaby-1]
  707. $ChildFathDNA[nextbaby] = $ChildFathDNA[nextbaby-1]
  708. $kid_dna[nextbaby] = $kid_dna[nextbaby-1]
  709. hairkid[nextbaby] = hairkid[nextbaby-1]
  710. eyeskid[nextbaby] = eyeskid[nextbaby-1]
  711. cumarrcon[nextbaby] = cumarrcon[nextbaby-1]
  712. $childtype[nextbaby] = 'identical twin'
  713. $childtype[nextbaby-1] = 'identical twin'
  714. end
  715. end
  716. ferteggage += 1
  717. Ovulate -= 1
  718. LutH += 1
  719. end
  720. !{Luteal to Menstration or Pregnancy. First it verifies this is the Luteal phase. Then it adds an hour to the age of the eggs. Then if there is a fertized egg, it rolls a random chance. if the egg age is low, it checks for risk of an entopic pregnancy. This is increased with older age and if you have a tubal ligation sterilization.}
  721. !{If there is a ectopic pregnancy, it sets the first unborn baby in the array to this. Ectopic pregnancies occur when the fertilized egg implants "too early" after fertlization (and therefore in the fallopian tube). The risk is higher with age, but this is also a common complication with certain forms of birth control, notably tubal ligation. Each egg could be different. It then removes the fertilized egg, adds an embryo, Then it adds some pregnancy hormone if you arent already pregnant, and calls you officially pregnant.}
  722. !{Otherwise, it adds your womb sterility factor to the imp_rand. Then it checks if your imp_rand crosses a threshold for implantation. Younger women implant easier. It then sets the next baby to the next unimplanted baby in your kid array. It registers the kid as a normal pregnancy, removes a fertilized egg and adds an embryo. Then it adds some pregnancy hormone if you arent already pregnant, and calls you officially pregnant.}
  723. if $ARGS[0] = 'cyc3':
  724. if fertegg = 1 and ferteggage < 330:
  725. if rand(0,(2000 - age*20)) = 0:
  726. fertegg += 1
  727. nextbaby = arrsize('$ChildFath')
  728. polkid[nextbaby] = polkid[nextbaby-1]
  729. $kidname[nextbaby] = 'unborn'
  730. kidage[nextbaby] = 0
  731. daykid[nextbaby] = 0
  732. monthkid[nextbaby] = 0
  733. yearkid[nextbaby] = 0
  734. Babyptype[nextbaby] = Babyptype[nextbaby-1]
  735. $ChildFath[nextbaby] = $ChildFath[nextbaby-1]
  736. $ChildFathDNA[nextbaby] = $ChildFathDNA[nextbaby-1]
  737. $kid_dna[nextbaby] = $kid_dna[nextbaby-1]
  738. hairkid[nextbaby] = hairkid[nextbaby-1]
  739. eyeskid[nextbaby] = eyeskid[nextbaby-1]
  740. cumarrcon[nextbaby] = cumarrcon[nextbaby-1]
  741. $childtype[nextbaby] = 'identical twin'
  742. $childtype[nextbaby-1] = 'identical twin'
  743. end
  744. end
  745. ferteggage += 1
  746. implant_idx = 0
  747. implant_sz = arrsize('Babyptype')
  748. :implant_loop
  749. if implant_idx < implant_sz:
  750. if Babyptype[implant_idx] = 0:
  751. imp_rand = rand(0,120000)
  752. if ferteggage < 120 and broodcurse <= 0:
  753. imp_rand += 170
  754. imp_rand -= age * 10
  755. if steriletu = 1: imp_rand -= 200
  756. if imp_rand <= 0:
  757. Babyptype[implant_idx] = 2
  758. FertEgg -= 1
  759. babyembryo += 1
  760. PregChem = rand(10,30)
  761. if preg = 0: preg = 1
  762. implant_day = daystart
  763. implant_hour = hour
  764. end
  765. else
  766. imp_rand += sterilewb
  767. imp_rand -= tempwbbonus
  768. if broodcurse > 0 and ferteggage >= 120: imp_rand = 0
  769. if imp_rand <= (1200 - (age * 7)):
  770. Babyptype[implant_idx] = 1
  771. FertEgg -= 1
  772. babyembryo += 1
  773. PregChem = rand(10,30)
  774. if preg = 0: preg = 1
  775. implant_day = daystart
  776. implant_hour = hour
  777. end
  778. tempwbbonus = 0
  779. end
  780. end
  781. implant_idx += 1
  782. jump 'implant_loop'
  783. end
  784. !!{Then, it progresses the Luteal phase. It checks to see if you are pregnant. If you are, it ends the cycle and sets preg if your Luteal hormone is at the max as well as cleans out any unimplanted eggs. Otherwise, it just progresses pregnancy chemical and Luteal Hormone. If you arent pregnant, it checks your Luteal hormone. If its at the maximum, it adds 3-5 days of bleeding, clears out your unimplanted eggs, and clears out your Luteal hormone, or ends your cycle if you are past your menopausal age. Otherwise it will just progress the Luteal hormone.}
  785. if LutH > LutH_Max:
  786. rej_idx = 0
  787. rej_sz = arrsize('Babyptype')
  788. :lutcycloop
  789. if rej_idx < rej_sz:
  790. if Babyptype[rej_idx] = 0:
  791. KILLVAR 'polkid',tempbabyi
  792. KILLVAR '$kidname',tempbabyi
  793. KILLVAR 'kidage',tempbabyi
  794. KILLVAR 'daykid',tempbabyi
  795. KILLVAR 'monthkid',tempbabyi
  796. KILLVAR 'yearkid',tempbabyi
  797. KILLVAR 'Babyptype',tempbabyi
  798. KILLVAR '$ChildFath',tempbabyi
  799. KILLVAR '$ChildThFath',tempbabyi
  800. KILLVAR 'hairkid',tempbabyi
  801. KILLVAR 'eyeskid',tempbabyi
  802. KILLVAR 'cumarrcon',tempbabyi
  803. FertEgg -= 1
  804. end
  805. rej_idx += 1
  806. jump 'lutcycloop'
  807. end
  808. LutH = 0
  809. if preg = 1:
  810. cycle = 5
  811. elseif menoage <= age:
  812. KILLVAR '$wombpotfath'
  813. killvar '$cumfthname'
  814. killvar '$cumfthusedname'
  815. killvar 'cumtime'
  816. cycle = 6
  817. else
  818. KILLVAR '$wombpotfath'
  819. killvar '$cumfthname'
  820. killvar '$cumfthusedname'
  821. killvar 'cumtime'
  822. !! the setting of the max_time can be here although it can be changed in the future
  823. FocH_Max = rand(312,360) & !! 13-15 days including menstruation
  824. temprand = rand(0,10)
  825. if pillcon >= 38000 or rand(1,24) = 1:
  826. EggRH = 0
  827. cycle = 1
  828. mesec = 0
  829. else
  830. cycle = 0
  831. killvar 'abortionbirthdate'
  832. if cyccustom = 1: daylastperiod = daystart
  833. firstmens = daystart
  834. temprand = rand(0,10)
  835. if temprand = 0 and pillcon < 10000:
  836. mesec = rand(104,136) & !! 120
  837. elseif temprand < 9 and pillcon < 15000:
  838. mesec = rand(76,104) & !! 96
  839. elseif pillcon < 20000:
  840. mesec = rand(52,76) & !! 72
  841. else
  842. mesec = rand(44,52) & !! 48
  843. end
  844. end
  845. end
  846. else
  847. if preg = 1:PregChem += 1+pregspeedcheat
  848. if rand(0,100) < 100: LutH += 1
  849. end
  850. end
  851. !{Recovery to Follicular. It checks to see if you are in the recovery phase after a pregnancy. If you are, it checks to see if you still have recovery hormone. If you dont, it sets you into the follicular phase with a chance of a boosted Egg releasing hormone. Otherwise it decreases your recovery hormone with a chance to decrease it twice.}
  852. if $ARGS[0] = 'cyc4':
  853. if RecovH <= 0:
  854. cycle = 1
  855. if cyccustom = 1:
  856. knowpregloss = 0
  857. knowpregrecover = 0
  858. end
  859. if rand(0,1000) = 1000:
  860. EggRH = rand(20,80)
  861. else
  862. EggRH = 0
  863. end
  864. FocH = EggRH
  865. else
  866. RecovH -= 1
  867. if rand(0,10) = 0: RecovH -= 1
  868. end
  869. end
  870. !{Pregnancy Progression. It checks to see if you are in the pregnancy phase of a cycle. If you are, it progresses your pregnancy chemical. Then it gives a fluxuation of possible due dates. If you cross the due date threshold, you enter labor, marked by preg = 2. Other milestones will also be placed in here, including body deformations. Right now this is mostly an empty placeholder.}
  871. if $ARGS[0] = 'preg':
  872. if fertegg = 1 and ferteggage < 330:
  873. if rand(0,(2000 - age*20)) = 0:
  874. babyembryo += 1
  875. PregChem += rand(10,30)
  876. nextbaby = arrsize('$ChildFath')
  877. polkid[nextbaby] = polkid[nextbaby-1]
  878. $kidname[nextbaby] = 'unborn'
  879. kidage[nextbaby] = 0
  880. daykid[nextbaby] = 0
  881. monthkid[nextbaby] = 0
  882. yearkid[nextbaby] = 0
  883. Babyptype[nextbaby] = Babyptype[nextbaby-1]
  884. $ChildFath[nextbaby] = $ChildFath[nextbaby-1]
  885. hairkid[nextbaby] = hairkid[nextbaby-1]
  886. eyeskid[nextbaby] = eyeskid[nextbaby-1]
  887. cumarrcon[nextbaby] = cumarrcon[nextbaby-1]
  888. $childtype[nextbaby] = 'identical twin'
  889. $childtype[nextbaby-1] = 'identical twin'
  890. end
  891. end
  892. PregChem += (1+pregspeedcheat)
  893. temprand = rand(-400,800)
  894. temprand -= (babyembryo-1)*588
  895. if PregChem > 6573 + temprand and preg ! 2:
  896. 'A sharp pain pierces your abdomen, and you feel something flow down your legs. Your water has broken!'
  897. $cycreport_txt = 'In labour'
  898. arrmodtmp =arrsize('$ChildFath')
  899. arrmodtmp -= (babyembryo+1)
  900. :babyfinalpreploop
  901. if arrmodtmp < arrsize('$ChildFath') and daykid[arrmodtmp] = 0:
  902. daykid[arrmodtmp] = 42
  903. $ChildThFath[arrmodtmp] = $wombthfath
  904. arrmodtmp += 1
  905. jump 'babyfinalpreploop'
  906. end
  907. KILLVAR '$wombpotfath'
  908. KILLVAR '$wombthfath'
  909. preg = 2
  910. pregminut = totminut + 1440
  911. if babyembryo > 1:
  912. 'Your babies are coming...'
  913. else
  914. 'Your baby is coming...'
  915. end
  916. if PregChem < 3885:
  917. 'Way too early!'
  918. elseif PregChem < 5229:
  919. 'Very early!'
  920. elseif PregChem < 6069:
  921. 'Early.'
  922. elseif PregChem > 6959:
  923. 'Late.'
  924. elseif PregChem > 7245:
  925. 'Very Late!'
  926. end
  927. 'You need to get to a clinic.'
  928. end
  929. if PregChem > 3887:
  930. if lactate <= 0:
  931. 'You begin lactating'
  932. lactate = 1
  933. lactatemv = 0
  934. lactatemm = func('lact_lib','$calc_lactatemm')
  935. lacaterate = 10
  936. prolactinlvl = 150
  937. else
  938. if lactate < 1: lactate = 1
  939. end
  940. end
  941. if PregChem > 1000:
  942. if prolactinlvl < 100 and lactate <= 0:
  943. if rand(0,100) > 50:
  944. prolactinlvl +=1
  945. end
  946. end
  947. end
  948. if PregChem > 2203:
  949. if pregchem > 2853 or kid > 0:
  950. if rand(0,7) = 0: dynamic $d_pregmovement
  951. else
  952. if rand(0,500) = 0: dynamic $d_pregmovement
  953. end
  954. end
  955. end
  956. --- femcyc ---------------------------------