lact_bp.qsrc 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207
  1. # lact_bp
  2. !! ---- old variables ---------------------------------------------------------
  3. !! - These Variables still need to be replaced/removed or substituted. -
  4. !! bottlecounter
  5. !! bp_unbox
  6. !! bp_useable_mbottle
  7. !! bp_useable_sbottle
  8. !! bp_used_mbottle
  9. !! bp_used_sbottle
  10. !! bpbottlem
  11. !! bpbottles
  12. !! breastcounter
  13. !! breastpump
  14. !! breastpumped
  15. !! di_i
  16. !! emb_i
  17. !! energytomilkpump
  18. !! lactaterate_use
  19. !! max_nip_flow_rate
  20. !! max_sucktion_demand
  21. !! mbarrcool
  22. !! mbarrfill
  23. !! mbarrloca
  24. !! mbarrmage
  25. !! mbarrtype
  26. !! milk_demand
  27. !! nip_flow
  28. !! nip_flow_mod
  29. !! nipple_cream
  30. !! pcs_ask_mward_help
  31. !! pcs_know_mward
  32. !! pcs_knows_electric_pump
  33. !! pcs_massagedherbreasts
  34. !! pcs_usedbreastpumponherself
  35. !! piits_i
  36. !! pump_bottletype
  37. !! pump_stop_brake
  38. !! pump_timestamp
  39. !! pumpinggrowth
  40. !! pumptime
  41. !! pumptime_left
  42. !! pumptype
  43. !! rbc_index
  44. !! reg_bottlem_count
  45. !! reg_bottles_count
  46. !! soreness_mod
  47. !! suck_flow_rate
  48. !! suck_until_pain
  49. !! temp_breastsize
  50. !! temp_lactaterate
  51. !! temp_timestamp
  52. !! temp_var
  53. !! temp_var2
  54. !! ts_i
  55. !! umbc_i
  56. !! usbc_i
  57. !! vmb_i
  58. !! bpID_arr['index'] : breast pump id. Starts at 0, with every purchased breast pump the id will be added
  59. !! bpType_arr['index'] : breast pump type. 0 = 'manual_single', 1 = 'electric_single', 2 ='electric_dual'
  60. !! bpLocID_arr['index'] : 0 = lost, 1 = in svetas hand... same as bottle locations
  61. !! bpbID1_arr['index'] : index of milk bottle array.
  62. !! bpbID2_arr['index'] : only used for dual pump, index for milk bottle array. cannot be the same like breastpump_arr['bottle_id_1'].
  63. !! when ever sveta buys a new breastpump, it has to be added to the breast pump array.
  64. if $ARGS[0] = 'build_bp':
  65. !! ARGS[1] = type
  66. !! ARGS[2] = location_id
  67. !! usage func('lact_bp', 'build_bp', 'breast pump type', 'location id')
  68. !! returns the new bottle ID
  69. bp_i = arrsize('bpID_arr')
  70. bpID_arr[bp_i] = bp_i
  71. bpType_arr[bp_i] = ARGS[1]
  72. bpLocID_arr[bp_i] = ARGS[2]
  73. bpbID1_arr[bp_i] = ''
  74. bpbID2_arr[bp_i] = ''
  75. result = bp_i
  76. end
  77. !! view milk bottles function
  78. if $ARGS[0] = 'view_milk_bottles':
  79. !! func('lact_bp', 'view_milk_bottles', location_id)
  80. !! use gs 'lact_bp','view_milk_bottles', 2
  81. !! locations
  82. !! 0 = lost
  83. !! 1 = in svetas hand
  84. !! 2 = in svetas bag
  85. !! 3 = parent bathroom
  86. !! 4 = parent fridge
  87. !! 5 = Resident Area Appartment Bathroom
  88. !! 6 = Resident Area Appartment Fridge
  89. !! 7 = Grandparents Bathroom
  90. !! 8 = Villa Bathroom
  91. !! 9 = Villa Fridge
  92. !! 10 = Shared Apartment Bathroom
  93. !! 11 = Shared Apartment Fridge
  94. !! Locations are not used yet but are implemented. I will add this on another day.
  95. !! milk bottle array indices
  96. !! mbarrtype: Size of milk bottle. Normal bottles are 150ml and large bottles are 250ml. Values are ml*10
  97. !! mbarrfill: Filled milk volume in the bottle. Values are in ml*10 and can''t surpass mbarrtype
  98. !! mbarrmage: timestamp the milk was pumped.
  99. !! mbarrcool: Is the milk cooled? 0 = no, 1 = normal cooler, 2 = deep freezer
  100. !! $mbarrstat: State of the milk: fresh, normal, old, rancid
  101. !! $mbarrtemp: Temperature of the milk: hot, warm, normal, cold, frozen
  102. !! mbarrloca: Location of the bottle.
  103. *clr
  104. cla
  105. !! Checking for unregistered bottles.
  106. gs 'lact_bp', 'reg_bottle_count'
  107. 'You check the bottles that you store here.<br>'
  108. temp_var = (mc_inventory['bottle_m'] + mc_inventory['bottle_s']) - 1
  109. vmb_i = 0
  110. milkedvolume = 0
  111. :vmbloop
  112. if vmb_i <= temp_var:
  113. if mbarrloca[vmb_i] = ARGS[1]:
  114. gs 'lact_bp', 'update_mbottle', vmb_i
  115. if mbarrfill[vmb_i] <=0:
  116. mbarrfill[vmb_i] = 0
  117. '<br><<vmb_i + 1>>. - An empty <<mbarrtype[vmb_i]/10>>ml bottle. You can use it to store your breast milk.'
  118. else
  119. '<br><<vmb_i + 1>>. - A <<mbarrtype[vmb_i]/10>>ml bottle. There is <<mbarrfill[vmb_i]/10>>ml of milk in the bottle. <a href="exec:msg ''<center>You open the bottle and check the milk inside.<br>You can feel the milk is <<$mbarrtemp[vmb_i]>> and it smells <<$mbarrstat[vmb_i]>>.</center>''">Check the content</a>' + ' ' + _
  120. iif(pcs_hydra < 100 and ($mbarrtemp[vmb_i] = 'warm' or $mbarrtemp[vmb_i] = 'normal temparture' or $mbarrtemp[vmb_i] = 'cold' or $mbarrtemp[vmb_i] = 'hot') and ($mbarrstat[vmb_i] = 'fresh' or $mbarrstat[vmb_i] = 'normal'),'<a href="exec:gt''lact_bp'',''drink_milk_bottles'', <<vmb_i>>"> Drink it</a>','')
  121. milkedvolume += mbarrfill[vmb_i]
  122. end
  123. end
  124. vmb_i += 1
  125. jump 'vmbloop'
  126. end
  127. if milkedvolume > 0:
  128. '<br><a href="exec:gt''lact_bp'',''empty_milk_bottles''">Pour the milk into the sink</a>'
  129. end
  130. act 'Back':gt 'lact_bp', 'bp_milking'
  131. end
  132. !! drink bottle function
  133. if $ARGS[0] = 'drink_milk_bottles':
  134. if mbarrfill[ARGS[1]] <= 0: exit
  135. *clr & cla
  136. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  137. '<center>You drink your own breast milk and clean up the bottle.</center>'
  138. if $mbarrtemp[ARGS[1]] = 'warm': '<center>The milk is still warm from your breasts.</center>'
  139. pcs_health += mbarrfill[ARGS[1]]/400
  140. pcs_energy += mbarrfill[ARGS[1]]/500
  141. pcs_hydra += mbarrfill[ARGS[1]] / iif(pcs_hydra>=100,200,100)
  142. minut += max(1,(mbarrfill[ARGS[1]]/1000) + 3)
  143. act 'Finish':
  144. mbarrfill[ARGS[1]] = 0
  145. mbarrmage[ARGS[1]] = 0
  146. mbarrcool[ARGS[1]] = 0
  147. $mbarrstat[ARGS[1]] = 'none'
  148. $mbarrtemp[ARGS[1]] = 'none'
  149. gs 'stat'
  150. menu_off = 0 & gs 'lact_bp', 'view_milk_bottles', 1
  151. end
  152. end
  153. !! empty bottle function
  154. if $ARGS[0] = 'empty_milk_bottles':
  155. !! use gt 'lact_bp', 'empty_milk_bottles'
  156. *clr
  157. cla
  158. temp_var = (mc_inventory['bottle_m'] + mc_inventory['bottle_s']) - 1
  159. emb_i = 0
  160. :emb_loop
  161. if emb_i <= temp_var:
  162. mbarrfill[emb_i] = 0
  163. mbarrmage[emb_i] = 0
  164. mbarrcool[emb_i] = 0
  165. $mbarrstat[emb_i] = 'none'
  166. $mbarrtemp[emb_i] = 'none'
  167. emb_i += 1
  168. jump 'emb_loop'
  169. end
  170. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
  171. '<center>You pour all of your collected breast milk into the sink and clean up the bottles.</center>'
  172. minut += temp_var
  173. act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  174. end
  175. !! fill a bottle function
  176. if $ARGS[0] = 'fill_milk_bottle':
  177. !! use func('lact_bp','fill_milk_bottle',bottle_id,milk_amount)
  178. !! example func('lact_bp','fill_milk_bottle',3,300)
  179. if ARGS[2] > mbarrtype[ARGS[1]]:
  180. 'ERROR - More milk going into bottle than the bottle can hold.'
  181. else
  182. mbarrfill[ARGS[1]] = ARGS[2]
  183. mbarrmage[ARGS[1]] = func('lact_bp','time_stamp')
  184. mbarrcool[ARGS[1]] = 0
  185. $mbarrstat[ARGS[1]] = 'fresh'
  186. $mbarrtemp[ARGS[1]] = 'warm'
  187. end
  188. end
  189. !! Time Stamp function for milk bottles.
  190. if $ARGS[0] = 'time_stamp':
  191. !! use func('lact_bp','time_stamp')
  192. !! This function creates a time stamp in minutes. It takes the current in game time and converts it to total minutes from year 01.01.0000 to in game now.
  193. !! Used to check breast milk age in bottles. Can be used for other functions if needed.
  194. temp_timestamp = 0
  195. temp_timestamp += year * 365 * 24 * 60
  196. ts_i = 1
  197. if month > 1:
  198. :ts_loop
  199. if (month - 1) => ts_i:
  200. if ts_i = 1 or ts_i = 3 or ts_i = 5 or ts_i = 7 or ts_i = 8 or ts_i = 10 or ts_i = 12:
  201. temp_timestamp += 44640
  202. elseif ts_i = 4 or ts_i = 6 or ts_i = 9 or ts_i = 11:
  203. temp_timestamp += 43200
  204. elseif ts_i = 2:
  205. temp_timestamp += 40320
  206. if (year mod 4) = 0 and (year mod 100) ! 0 or (year mod 400) = 0:
  207. temp_timestamp += 1440
  208. end
  209. end
  210. ts_i += 1
  211. jump 'ts_loop'
  212. end
  213. end
  214. temp_timestamp += (day - 1) * 24 * 60
  215. temp_timestamp += hour * 60
  216. temp_timestamp += minut
  217. result = temp_timestamp
  218. end
  219. !! Update Milk bottle function
  220. if $ARGS[0] = 'update_mbottle':
  221. !! func('lact_bp', 'update_mbottle', bottle_id)
  222. !! use result = func('lact_bp','update_mbottle', '0')
  223. !! this function is used to update milk bottles whenever the milk is pumped or sveta checkes the bottles in her stash.
  224. !! Room temperature. Freshly expressed breast milk can be kept at room temperature for up to six hours. However, use or proper storage within four hours is optimal. If the room is especially warm, the limit is also four hours.
  225. !! Insulated cooler. Freshly expressed breast milk can be stored in an insulated cooler with ice packs for up to one day.
  226. !! Refrigerator. Freshly expressed breast milk can be stored in the back of the refrigerator for up to five days in clean conditions. However, use or freezer storage within three days is optimal.
  227. !! Deep freezer. Freshly expressed breast milk can be stored in the back of a deep freezer for up to 12 months. However, using the frozen milk within six months is optimal.
  228. !! milk bottle array indices
  229. !! mbarrtype: Size of milk bottle. Normal bottles are 150ml and large bottles are 250ml. Values are ml*10
  230. !! mbarrfill: Filled milk volume in the bottle. Values are in ml*10 and can''t surpass mbarrtype
  231. !! mbarrmage: timestamp the milk was pumped.
  232. !! mbarrcool: Is the milk cooled? 0 = no, 1 = normal cooler, 2 = deep freezer
  233. !! $mbarrstat: State of the milk: fresh, normal, old, rancid
  234. !! $mbarrtemp: Temperature of the milk: hot, warm, normal temparture, cold, frozen
  235. !! mbarrloca: Location of the bottle.
  236. if mbarrfill[ARGS[1]] > 0:
  237. if mbarrfill[ARGS[1]] > mbarrtype[ARGS[1]]: mbarrfill[ARGS[1]] = mbarrtype[ARGS[1]]
  238. if mbarrmage[ARGS[1]] <= 0: mbarrmage[ARGS[1]] = func('lact_bp','time_stamp')
  239. if mbarrcool[ARGS[1]] = 0:
  240. if (mbarrmage[ARGS[1]] + 60) >= func('lact_bp','time_stamp'):
  241. $mbarrtemp[ARGS[1]] = 'warm'
  242. $mbarrstat[ARGS[1]] = 'fresh'
  243. elseif (mbarrmage[ARGS[1]] + 60) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 360) >= func('lact_bp','time_stamp'):
  244. $mbarrtemp[ARGS[1]] = 'normal temparture'
  245. $mbarrstat[ARGS[1]] = 'normal'
  246. elseif (mbarrmage[ARGS[1]] + 360) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 1440) >= func('lact_bp','time_stamp'):
  247. $mbarrtemp[ARGS[1]] = 'normal temparture'
  248. $mbarrstat[ARGS[1]] = 'old'
  249. else
  250. $mbarrtemp[ARGS[1]] = 'normal temparture'
  251. $mbarrstat[ARGS[1]] = 'rancid'
  252. end
  253. elseif mbarrcool[ARGS[1]] = 1:
  254. if (mbarrmage[ARGS[1]] + 1440) >= func('lact_bp','time_stamp'):
  255. $mbarrtemp[ARGS[1]] = 'cold'
  256. $mbarrstat[ARGS[1]] = 'fresh'
  257. elseif (mbarrmage[ARGS[1]] + 1440) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 4320) >= func('lact_bp','time_stamp'):
  258. $mbarrtemp[ARGS[1]] = 'cold'
  259. $mbarrstat[ARGS[1]] = 'normal'
  260. elseif (mbarrmage[ARGS[1]] + 4320) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 7200) >= func('lact_bp','time_stamp'):
  261. $mbarrtemp[ARGS[1]] = 'cold'
  262. $mbarrstat[ARGS[1]] = 'old'
  263. else
  264. $mbarrtemp[ARGS[1]] = 'cold'
  265. $mbarrstat[ARGS[1]] = 'rancid'
  266. end
  267. elseif mbarrcool[ARGS[1]] = 2:
  268. if (mbarrmage[ARGS[1]] + 10080) >= func('lact_bp','time_stamp'):
  269. $mbarrtemp[ARGS[1]] = 'frozen'
  270. $mbarrstat[ARGS[1]] = 'fresh'
  271. elseif (mbarrmage[ARGS[1]] + 10080) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 262080) >= func('lact_bp','time_stamp'):
  272. $mbarrtemp[ARGS[1]] = 'frozen'
  273. $mbarrstat[ARGS[1]] = 'normal'
  274. elseif (mbarrmage[ARGS[1]] + 262080) < func('lact_bp','time_stamp') and (mbarrmage[ARGS[1]] + 525600) >= func('lact_bp','time_stamp'):
  275. $mbarrtemp[ARGS[1]] = 'frozen'
  276. $mbarrstat[ARGS[1]] = 'old'
  277. else
  278. $mbarrtemp[ARGS[1]] = 'frozen'
  279. $mbarrstat[ARGS[1]] = 'rancid'
  280. end
  281. else
  282. $mbarrtemp[ARGS[1]] = 'warm'
  283. $mbarrstat[ARGS[1]] = 'fresh'
  284. end
  285. else
  286. $mbarrtemp[ARGS[1]] = 'none'
  287. $mbarrstat[ARGS[1]] = 'none'
  288. mbarrmage[ARGS[1]] = 0
  289. mbarrfill[ARGS[1]] = 0
  290. end
  291. end
  292. if $ARGS[0] = 'useable_sbottle_count':
  293. !! use result = func('lact_bp','useable_sbottle_count',)
  294. !! function will give you the amount of 150ml bottles that sveta can use at the moment.
  295. usbc_i = 0
  296. bottlecounter = 0
  297. if reg_bottles_count > 0:
  298. :usbc_loop
  299. if usbc_i <= (reg_bottlem_count + reg_bottles_count):
  300. if mbarrtype[usbc_i] = 1500 and mbarrfill[usbc_i] = 0:
  301. bottlecounter += 1
  302. end
  303. usbc_i += 1
  304. jump 'usbc_loop'
  305. end
  306. end
  307. result = bottlecounter
  308. end
  309. if $ARGS[0] = 'useable_mbottle_count':
  310. !! use result = func('lact_bp','useable_mbottle_count')
  311. !! function will give you the amount of 250ml bottles that sveta can use at the moment.
  312. umbc_i = 0
  313. bottlecounter = 0
  314. if reg_bottlem_count > 0:
  315. :umbc_loop
  316. if umbc_i <= (reg_bottlem_count + reg_bottles_count):
  317. if mbarrtype[umbc_i] = 2500 and mbarrfill[umbc_i] = 0:
  318. bottlecounter += 1
  319. end
  320. umbc_i += 1
  321. jump 'umbc_loop'
  322. end
  323. end
  324. result = bottlecounter
  325. end
  326. !! bp_milking - breast pump milking
  327. !! use href="exec:gt ''lact_bp'',''bp_milking''" or gt 'lact_bp','bp_milking'
  328. if $ARGS[0] = 'bp_milking':
  329. pumptime = 0
  330. pumptype = 0
  331. gs 'lact_bp', 'reg_bottle_count'
  332. if pump_bottletype < 1500: pump_bottletype = 1500
  333. if $location_type ! 'bathroom' and pcs_inhib < 30:
  334. 'You aren''t confident enough to do that here.'
  335. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  336. elseif bp_unbox <= 0:
  337. 'You need to unbox your breast pump first.'
  338. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  339. elseif bp_unbox = 1 and ($location_type = 'bathroom' or $location_type = 'private'):
  340. gt 'lact_bp', 'bp_unbox_event'
  341. else
  342. *clr
  343. cla
  344. '<center><img <<$set_imgh>> src="images/pc/body/tits/breast_pump.jpg"></center>'
  345. 'How long do you want to pump your breasts with the manual breast pump?'
  346. if func('lact_bp','useable_sbottle_count') > 0 and func('lact_bp','useable_mbottle_count') > 0:
  347. if func('lact_bp','useable_sbottle_count') > 0 and pump_bottletype = 1500:
  348. 'Current bottle size in use: &gt;150ml | <a href="exec:pump_bottletype = 2500 & gt ''lact_bp'', ''bp_milking''">250ml</a>'
  349. elseif func('lact_bp','useable_mbottle_count') > 0:
  350. pump_bottletype = 2500
  351. 'Current bottle size in use <a href="exec:pump_bottletype = 1500 & gt ''lact_bp'', ''bp_milking''">150ml</a> | &gt;250ml'
  352. else
  353. 'this should not end up here - got to tfg forums.'
  354. end
  355. elseif func('lact_bp','useable_sbottle_count') > 0 and func('lact_bp','useable_mbottle_count') <= 0:
  356. pump_bottletype = 1500
  357. 'You currently use a 150ml bottle on your breast pump.'
  358. elseif func('lact_bp','useable_sbottle_count') <= 0 and func('lact_bp','useable_mbottle_count') > 0:
  359. pump_bottletype = 2500
  360. 'You currently use a 250ml bottle on your breast pump.'
  361. else
  362. 'You have no bottles left to use. Please empty bottles or buy new ones in the pharmacy.'
  363. end
  364. if (mc_inventory['bottle_m'] + mc_inventory['bottle_s']) = 1:
  365. 'You have one bottle. You can check it <a href="exec:gs ''lact_bp'',''view_milk_bottles'', 1">here</a>'
  366. elseif (mc_inventory['bottle_m'] + mc_inventory['bottle_s']) > 1:
  367. 'You have <<mc_inventory[''bottle_m''] + mc_inventory[''bottle_s'']>> bottles. You can check them <a href="exec:gs ''lact_bp'',''view_milk_bottles'', 1">here</a>'
  368. end
  369. if lactation['breastmv'] > 0 and (func('lact_bp','useable_sbottle_count') > 0 or func('lact_bp','useable_mbottle_count') > 0):
  370. pumptime = (func('lact_lib','$get_breastmilk_time', 3, (lactation['breastmv']/1000)))
  371. if pumptime > 5:
  372. pumptime -= 2
  373. end
  374. if pumptime > 60:
  375. act 'Pump until breasts are empty':
  376. *clr
  377. cla
  378. minut += 2
  379. 'As you prepare for pumping you weight your breasts in your hands. You feel that your breasts carry a large amount of milk and pumping will probably take a long time.'
  380. 'Getting relieve for your breasts with the manual breast pump will probably take at least <<pumptime>> minutes.'
  381. if pcs_know_mward <= 0:
  382. 'You consider visiting a hospital to get help or buying a better breast pump.'
  383. pcs_ask_mward_help = 1
  384. pcs_knows_electric_pump = 1
  385. end
  386. 'Do you want to continue?'
  387. act 'Don''t pump':gt $loc, $loc_arg
  388. act 'Continue':
  389. gt 'lact_bp', 'milking'
  390. end
  391. end
  392. elseif pumptime <= 0:
  393. act 'Pump until breasts are empty':
  394. *clr
  395. cla
  396. minut += 2
  397. 'As you prepare for pumping you weight your breasts in your hands. Your breasts feel really empty. There is no need to pump now.'
  398. act 'Don''t pump':gt $loc, $loc_arg
  399. act 'back':gt 'lact_bp', 'bp_milking'
  400. end
  401. else
  402. act 'Pump until breasts are empty':
  403. pumptime = func('lact_lib','$get_breastmilk_time', 3, (lactation['breastmv']/1000))
  404. if pumptime > 5:
  405. pumptime -= 2
  406. end
  407. gt 'lact_bp', 'milking'
  408. end
  409. end
  410. end
  411. if (func('lact_bp','useable_sbottle_count') > 0 or func('lact_bp','useable_mbottle_count') > 0):
  412. act '15 Minutes':
  413. pumptime = 15
  414. gt 'lact_bp', 'milking'
  415. end
  416. act '30 Minutes':
  417. pumptime = 30
  418. gt 'lact_bp', 'milking'
  419. end
  420. act 'Custom':
  421. pumptime = input ("How long do you plan to pump your breasts? (Not more than 60 minutes)")
  422. if pumptime <= 0 or pumptime > 60:
  423. minut += 2
  424. act 'Don''t pump':menu_off = 0 & gt $loc, $loc_arg
  425. act 'back':gt 'lact_bp', 'bp_milking'
  426. elseif pumptime > 0 and pumptime <= 60:
  427. gt 'lact_bp', 'milking'
  428. end
  429. end
  430. end
  431. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  432. act 'Manually milk your breasts': gt 'lact_bp','man_milking'
  433. else
  434. act 'Massage your breasts': gt 'lact_bp','man_milking'
  435. end
  436. act 'Don''t pump':menu_off = 0 & gt $loc, $loc_arg
  437. end
  438. end
  439. !! man_milking - manual (with hands) milking
  440. !! use href="exec:gt ''lact_bp'',''man_milking''"
  441. !! for manual milk expression in bathrooms etc. please use this function.
  442. if $ARGS[0] = 'massage':
  443. if (($location_type ! 'bathroom' and pcs_inhib >= 30) or $location_type = 'bathroom' and mc_inventory['breast_pump'] = 0) and (pcs_horny >= 10 or lactation['active'] > 0) and cheat_NoLactation = 0:
  444. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  445. act 'Milk your breasts': gt 'lact_bp','man_milking'
  446. else
  447. act 'Massage your breasts': gt 'lact_bp','man_milking'
  448. end
  449. end
  450. end
  451. if $ARGS[0] = 'man_milking':
  452. pumptime = 0
  453. *clr
  454. cla
  455. gs 'lact_bp', 'reg_bottle_count'
  456. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  457. 'How long do you want to milk your breasts?'
  458. else
  459. 'How long do you want to massage your breasts?'
  460. end
  461. if lactation['breastmv'] > 0:
  462. pumptime = (func('lact_lib','$get_breastmilk_time', 5, (lactation['breastmv']/1000)))
  463. if pumptime > 60:
  464. act 'Express until breasts are empty':
  465. *clr
  466. cla
  467. minut += 2
  468. 'You prepare yourself and weight your breasts in your hands. You feel that your breasts carry a large amount of milk and manually expressing it will probably take a long time.'
  469. 'Getting relieve for your breasts with manual expression will probably take at least <<pumptime>> minutes.'
  470. if mc_inventory['breast_pump'] <= 0 and bp_unbox <= 1:
  471. 'You should consider buying a breast pump'
  472. elseif mc_inventory['breast_pump'] = 1 and bp_unbox <= 1 and pain['nipples'] <= 60:
  473. 'You should consider using your breast pump.'
  474. else
  475. 'You should consider the use of a breast pump.'
  476. end
  477. 'Do you want to continue?'
  478. act 'Don''t express':menu_off = 0 & gt $loc, $loc_arg
  479. act 'Express your milk':
  480. gt 'lact_bp', 'hand_milking'
  481. end
  482. end
  483. elseif pumptime <= 0:
  484. act 'Express milk until breasts are empty':
  485. *clr
  486. cla
  487. minut += 2
  488. 'As you prepare yourself you feel your breasts in your hands. Your breasts feel really empty. There is no need to express now.'
  489. act 'Don''t express milk':menu_off = 0 & gt $loc, $loc_arg
  490. act 'back':gt 'lact_bp', 'man_milking'
  491. end
  492. else
  493. act 'Express until breasts are empty':
  494. pumptime = func('lact_lib','$get_breastmilk_time', 5, (lactation['breastmv']/1000))
  495. gt 'lact_bp', 'hand_milking'
  496. end
  497. end
  498. end
  499. act '5 Minutes':
  500. pumptime = 5
  501. gt 'lact_bp', 'hand_milking'
  502. end
  503. act '10 Minutes':
  504. pumptime = 10
  505. gt 'lact_bp', 'hand_milking'
  506. end
  507. act 'Custom':
  508. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  509. pumptime = input ("How long do you plan to milk your breasts? (Not more than 60 minutes)")
  510. else
  511. pumptime = input ("How long do you plan to massage your breasts? (Not more than 60 minutes)")
  512. end
  513. if pumptime <= 0 or pumptime > 60:
  514. minut += 2
  515. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  516. act 'Don''t express':gt $loc, $loc_arg
  517. else
  518. act 'Don''t massage':gt $loc, $loc_arg
  519. end
  520. act 'back':gt 'lact_bp', 'man_milking'
  521. elseif pumptime > 0 and pumptime <= 60:
  522. gt 'lact_bp', 'hand_milking'
  523. end
  524. end
  525. if lactation['active'] > 0 and lactation['pc_aware'] > 0:
  526. act 'Don''t express':menu_off = 0 & gt $loc, $loc_arg
  527. else
  528. act 'Don''t massage':menu_off = 0 & gt $loc, $loc_arg
  529. end
  530. end
  531. if $ARGS[0] = 'bp_unbox_event':
  532. if bp_unbox <= 0:
  533. *clr
  534. cla
  535. minut += 5
  536. if $location_type = 'bathroom':
  537. 'You push down the toilet seat to sit down and slowly start to unbox your newly acquired breast pump.'
  538. elseif $location_type = 'private' and $locclass = 'bedr':
  539. 'You sit down on your bed and slowly start to unbox your newly acquired breast pump.'
  540. elseif $location_type = 'private':
  541. 'You sit down and slowly start to unbox your newly acquired breast pump.'
  542. end
  543. if knowpreg = 0 and bp_unbox <= 0:
  544. 'While examining it, you think about why you bought it in the first place. You are not pregnant nor do you have a kid that needs breast milk.'
  545. if lactation['active'] <= 0:
  546. 'Your breasts haven''t got any milk in them too, so it seems this pump is a bit useless.'
  547. else
  548. 'At least it can help to get the milk out of your breasts.'
  549. end
  550. end
  551. if $location_type = 'private':
  552. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_unboxing.jpg"></center>'
  553. elseif $location_type = 'bathroom':
  554. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_unboxing_bath.jpg"></center>'
  555. else
  556. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_unboxing_bath.jpg"></center>'
  557. end
  558. !! creating first 150ml bottle
  559. mc_inventory['bottle_s'] += 1
  560. gs 'lact_bp', 'reg_bottle_count'
  561. !! Actions
  562. if (pcs_inhib > 40 and $location_type = 'private') or $location_type = 'bathroom':
  563. act 'Try out how it works':
  564. *clr
  565. cla
  566. 'You pull up your top to release your breasts'
  567. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center><br>'
  568. 'Your fingers glide around the suction cup of the breast pump, while your other hand holds the pump.'
  569. 'Making sure that no one is around, you lift the breast pump to your left breast. The cold cone feels uncomfortable on your nipple.'
  570. milkedvolume = (func('lact_lib','$get_breastmilk', 3, 1))/100
  571. minut += 1
  572. bp_unbox = 2
  573. if lactation['active'] > 0 and milkedvolume > 0:
  574. if milkedvolume <= 50:
  575. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  576. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  577. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  578. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  579. elseif milkedvolume > 50 and milkedvolume <= 1500:
  580. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  581. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  582. 'You go on for a minute and then detach the pump. You collected <<milkedvolume/10>>ml of your breast milk.'
  583. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_half.jpg"></center>'
  584. else
  585. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  586. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  587. 'You go on for a minute and then detach the pump. You easily filed the breast pump bottle with your breast milk just with this little pumping.'
  588. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_full.jpg"></center>'
  589. end
  590. 'You nod at the breast pump, thinking it will come in handy.'
  591. elseif lactation['active'] > 0 and milkedvolume <= 0:
  592. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  593. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  594. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  595. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  596. else
  597. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  598. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  599. 'You go on for a minute and then detach the pump. As expected no milk was collected in the bottle.'
  600. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/breast_pump.jpg"></center>'
  601. end
  602. if lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:
  603. if pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts <= 0:
  604. 'You are surprised to see that you are lactating!'
  605. lactation['induced'] = 1
  606. elseif pcs_usedbreastpumponherself <= 0 and pcs_massagedherbreasts > 0:
  607. 'Regularily massaging your breasts probably made you lactate!<br>'
  608. lactation['induced'] = 1
  609. elseif pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts > 0:
  610. 'All that pumping and massaging your breasts probably caused you to lactate!<br>'
  611. lactation['induced'] = 1
  612. else
  613. 'To your surprise it is milk. You started lactating!<br>'
  614. if thinkpreg = 1 or knowpreg = 1:
  615. 'This is probably happening because you are pregnant.'
  616. else
  617. 'You should have this checked out by a doctor. You could be pregnant.'
  618. end
  619. lactation['induced'] = 0
  620. end
  621. lactation['pc_aware'] = 1
  622. end
  623. act 'continue':
  624. *clr
  625. cla
  626. if milkedvolume > 50 and $location_type = 'private':
  627. 'You look at the milk in the bottle and then around the room. Having no idea what to do with the excess milk, you look at it and suddenly sip it down.'
  628. 'It is your milk, so it should be okay to drink it.'
  629. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  630. '<center>The milk is still warm from your breasts.</center>'
  631. pcs_health += milkedvolume/400
  632. pcs_energy += milkedvolume/500
  633. if pcs_hydra >= 100:
  634. pcs_hydra += milkedvolume/200
  635. else
  636. pcs_hydra += milkedvolume/100
  637. end
  638. minut += ((milkedvolume/1000) + 3)
  639. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  640. else
  641. 'You clean up your pump and cover your breasts again.'
  642. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  643. end
  644. end
  645. bp_unbox = 2
  646. end
  647. end
  648. act 'Don''t try it here':
  649. *clr
  650. cla
  651. 'You look around you, not feeling to comfortable to use the breast pump here.'
  652. bp_unbox = 1
  653. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  654. end
  655. elseif bp_unbox = 1:
  656. if $location_type = 'private' and pcs_inhib < 40:
  657. 'You can''t do this here'
  658. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  659. else
  660. 'You pull up your top to release your breasts'
  661. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center><br>'
  662. 'Your fingers glide around the suction cup of the breast pump, while your other hand holds the pump.'
  663. 'Making sure that no one is around, you lift the breast pump to your left breast. The cold cone feels uncomfortable on your nipple.'
  664. milkedvolume = (func('lact_lib','$get_breastmilk', 3, 1))/100
  665. minut += 1
  666. bp_unbox = 2
  667. if lactation['active'] > 0 and milkedvolume > 0:
  668. if milkedvolume <= 50:
  669. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  670. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  671. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  672. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  673. elseif milkedvolume > 50 and milkedvolume <= 1500:
  674. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  675. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  676. 'You go on for a minute and then detach the pump. You collected <<milkedvolume/10>>ml of your breast milk.'
  677. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_half.jpg"></center>'
  678. else
  679. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  680. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it. The pump starts to draw milk from your breast.'
  681. 'You go on for a minute and then detach the pump. You easily filed the breast pump bottle with your breast milk just with this little pumping.'
  682. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_full.jpg"></center>'
  683. end
  684. 'You nod at the breast pump, thinking it will come in handy.'
  685. elseif lactation['active'] > 0 and milkedvolume <= 0:
  686. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  687. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  688. 'You go on for a minute and then detach the pump. You collected some milk, but it is just a small puddle in the bottle.'
  689. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  690. else
  691. 'You start to squeeze the bulb. Your nipple is sucked into the cone, getting elongated a bit. It feels weird at first and you release the lever, the suction on your nipple goes away and the nipple retracts.'
  692. 'With your hand you squeeze down again, your nipple sucked in again. You go on, and start to rhythmically squeeze it.'
  693. 'You go on for a minute and then detach the pump. As expected no milk was collected in the bottle.'
  694. '<br><center><img <<$set_imgh>> src="images/pc/body/tits/breast_pump.jpg"></center>'
  695. end
  696. act 'continue':
  697. *clr
  698. cla
  699. if milkedvolume > 50 and $location_type = 'private':
  700. 'You look at the milk in the bottle and then around the room. Having no idea what to do with the excess milk, you look at it and suddenly sip it down.'
  701. 'It is your milk, so it should be okay to drink it.'
  702. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  703. '<center>The milk is still warm from your breasts.</center>'
  704. pcs_health += milkedvolume/400
  705. pcs_energy += milkedvolume/500
  706. if pcs_hydra >= 100:
  707. pcs_hydra += milkedvolume/200
  708. else
  709. pcs_hydra += milkedvolume/100
  710. end
  711. minut += ((milkedvolume/1000) + 3)
  712. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  713. else
  714. 'You clean up your pump and cover your breasts again.'
  715. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  716. end
  717. end
  718. end
  719. elseif bp_unbox >= 2:
  720. *clr
  721. cla
  722. 'You unboxed your breast pump already.'
  723. act 'Finish': menu_off = 0 & gt $loc, $loc_arg
  724. end
  725. end
  726. if $ARGS[0] = 'reg_bottle_count':
  727. if reg_bottles_count <= 0: reg_bottles_count = 0
  728. if reg_bottlem_count <= 0: reg_bottlem_count = 0
  729. if (reg_bottlem_count + reg_bottles_count) < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  730. :rbc_loop
  731. rbc_index = (reg_bottlem_count + reg_bottles_count) - 1
  732. if (mc_inventory['bottle_s'] - reg_bottles_count) > 0:
  733. reg_bottles_count += 1
  734. rbc_index = (reg_bottlem_count + reg_bottles_count) - 1
  735. mbarrtype[rbc_index] = 1500
  736. mbarrfill[rbc_index] = 0
  737. mbarrmage[rbc_index] = 0
  738. mbarrcool[rbc_index] = 0
  739. $mbarrstat[rbc_index] = 'none'
  740. $mbarrtemp[rbc_index] = 'none'
  741. mbarrloca[rbc_index] = 1
  742. jump 'rbc_loop'
  743. end
  744. if (mc_inventory['bottle_m'] - reg_bottlem_count) > 0:
  745. reg_bottlem_count += 1
  746. rbc_index = (reg_bottlem_count + reg_bottles_count) - 1
  747. mbarrtype[rbc_index] = 2500
  748. mbarrfill[rbc_index] = 0
  749. mbarrmage[rbc_index] = 0
  750. mbarrcool[rbc_index] = 0
  751. $mbarrstat[rbc_index] = 'none'
  752. $mbarrtemp[rbc_index] = 'none'
  753. mbarrloca[rbc_index] = 1
  754. jump 'rbc_loop'
  755. end
  756. end
  757. end
  758. !! milking
  759. !! never use directly. Always use bp_milking, man_milking or sex_milking
  760. if $ARGS[0] = 'milking':
  761. gs 'lact_bp', 'reg_bottle_count'
  762. if lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] > 0:
  763. milkedvolume = (func('lact_lib','$get_breastmilk', 3, pumptime))/100
  764. !!act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  765. bp_used_mbottle = 0
  766. bp_used_sbottle = 0
  767. bp_useable_sbottle = func('lact_bp','useable_sbottle_count')
  768. bp_useable_mbottle = func('lact_bp','useable_mbottle_count')
  769. pump_timestamp = func('lact_bp','time_stamp')
  770. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_lactating.jpg"></center>'
  771. if pumptime > 1:
  772. 'You attach the pump to your breast and start rhythmically squeezing the bulb for <<pumptime>> minutes.'
  773. else
  774. 'You attach the pump to your breast and start rhythmically squeezing the bulb for one minute.'
  775. end
  776. if milkedvolume > pump_bottletype and (bp_useable_sbottle*1500 + bp_useable_mbottle*2500) = pump_bottletype:
  777. 'During pumping you have to empty the collecting bottle as it filled up with your milk.'
  778. 'You give it a few more pumps and detach the pump.<br>You filled the bottle with <<pump_bottletype/10>>ml of your milk.'
  779. 'To collect all your pumped milk you should probably check if the pharmacy has additional bottles for your breast pump.'
  780. if (bp_useable_sbottle - bp_used_sbottle) > 0:
  781. bottlecounter = 0
  782. :sbottle_loneloop
  783. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']) and milkedvolume > 1500:
  784. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  785. func('lact_bp','fill_milk_bottle',bottlecounter,1500)
  786. jump 'bottlefull_loopbreak'
  787. end
  788. bottlecounter += 1
  789. jump 'sbottle_loneloop'
  790. end
  791. elseif (bp_useable_mbottle - bp_used_mbottle) > 0 and milkedvolume > 2500:
  792. bottlecounter = 0
  793. :mbottle_loneloop
  794. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  795. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  796. func('lact_bp','fill_milk_bottle',bottlecounter,2500)
  797. jump 'bottlefull_loopbreak'
  798. end
  799. bottlecounter += 1
  800. jump 'mbottle_loneloop'
  801. end
  802. else
  803. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  804. 'first fork case'
  805. 'bp_used_mbottle: <<bp_used_mbottle>>'
  806. 'bp_used_sbottle: <<bp_used_sbottle>>'
  807. 'milkedvolume: <<milkedvolume>>'
  808. 'pump_bottletype: <<pump_bottletype>>'
  809. 'bp_useable_sbottle: <<bp_useable_sbottle>>'
  810. 'bp_useable_mbottle: <<bp_useable_mbottle>>'
  811. end
  812. :bottlefull_loopbreak
  813. elseif milkedvolume > pump_bottletype and (bp_useable_sbottle*1500 + bp_useable_mbottle*2500) > pump_bottletype:
  814. !! Checking which bottletype is used and filling those bottles up before the other type is used.
  815. :sbottleloop
  816. if pump_bottletype < 2500 and milkedvolume >= 1500 and bp_used_sbottle < bp_useable_sbottle:
  817. bp_used_sbottle += 1
  818. milkedvolume -= 1500
  819. bottlecounter = 0
  820. :sbottle_searchloop
  821. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  822. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  823. func('lact_bp','fill_milk_bottle',bottlecounter,1500)
  824. jump 'sbottle_searchloopbreak'
  825. end
  826. bottlecounter += 1
  827. jump 'sbottle_searchloop'
  828. end
  829. :sbottle_searchloopbreak
  830. jump 'sbottleloop'
  831. end
  832. :mbottleloop
  833. if pump_bottletype >= 2500 and milkedvolume >= 2500 and bp_used_mbottle < bp_useable_mbottle:
  834. bp_used_mbottle += 1
  835. milkedvolume -= 2500
  836. bottlecounter = 0
  837. :mbottle_searchloop
  838. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  839. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  840. func('lact_bp','fill_milk_bottle',bottlecounter,2500)
  841. jump 'mbottle_searchloopbreak'
  842. end
  843. bottlecounter += 1
  844. jump 'mbottle_searchloop'
  845. end
  846. :mbottle_searchloopbreak
  847. jump 'mbottleloop'
  848. end
  849. !! Checking for the milkedvolume and if there are bottles left. if yes - use these bottles
  850. if milkedvolume > 0 and (((bp_useable_mbottle - bp_used_mbottle) > 0) or ((bp_useable_sbottle - bp_used_sbottle) > 0)):
  851. :altfill01
  852. if pump_bottletype < 2500 and milkedvolume >= 2500 and bp_used_mbottle < bp_useable_mbottle:
  853. bp_used_mbottle += 1
  854. milkedvolume -= 2500
  855. bottlecounter = 0
  856. :sbottle_altsearchloop
  857. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  858. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  859. func('lact_bp','fill_milk_bottle',bottlecounter,2500)
  860. jump 'sbottle_altsearchloopbreak'
  861. end
  862. bottlecounter += 1
  863. jump 'sbottle_altsearchloop'
  864. end
  865. :sbottle_altsearchloopbreak
  866. jump 'altfill01'
  867. end
  868. :altfill02
  869. if pump_bottletype >= 2500 and milkedvolume >= 1500 and bp_used_sbottle < bp_useable_sbottle:
  870. bp_used_sbottle += 1
  871. milkedvolume -= 1500
  872. bottlecounter = 0
  873. :mbottle_altsearchloop
  874. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  875. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  876. func('lact_bp','fill_milk_bottle',bottlecounter,1500)
  877. jump 'mbottle_altsearchloopbreak'
  878. end
  879. bottlecounter += 1
  880. jump 'mbottle_altsearchloop'
  881. end
  882. :mbottle_altsearchloopbreak
  883. jump 'altfill02'
  884. end
  885. end
  886. !! by this point all bottles should have been used up. Everything else needs to end up in the drain.
  887. if milkedvolume > 0 and bp_useable_mbottle = bp_used_mbottle and bp_useable_sbottle = bp_used_sbottle:
  888. 'During pumping you have to switch the collecting bottle as it filled up with your milk. Unfortunately you don''t have enough bottles to collect all your milk.'
  889. 'You had to pour <<milkedvolume/10>>ml of your breast milk into the sink.'
  890. milkedvolume = ((bp_used_mbottle*2500) + (bp_used_sbottle*1500))
  891. elseif milkedvolume > 0 and milkedvolume < 1500 and (bp_useable_sbottle - bp_used_sbottle) > 0:
  892. 'During pumping you have to switch the collecting bottle as it filled up with your milk.'
  893. elseif milkedvolume > 0 and milkedvolume < 2500 and milkedvolume > 1500 and (bp_useable_mbottle - bp_used_mbottle) > 0:
  894. 'During pumping you have to switch the collecting bottle as it filled up with your milk.'
  895. else
  896. 'During pumping you have to switch the collecting bottle as it filled up with your milk.'
  897. end
  898. if bp_used_mbottle >= 1 or bp_used_sbottle >= 1:
  899. '<center><img <<$set_imgh>> src="images/pc/body/tits/bottles_full.jpg"></center>'
  900. if milkedvolume = ((bp_used_mbottle*2500) + (bp_used_sbottle*1500)):
  901. 'You pumped <<milkedvolume/10>>ml of milk from your breasts, collecting it in:'
  902. if bp_useable_sbottle = 1:
  903. 'One 150ml bottle'
  904. elseif bp_used_sbottle > 1:
  905. '<<bp_used_sbottle>> x 150ml bottles'
  906. end
  907. if bp_used_mbottle = 1:
  908. 'One 250ml bottle'
  909. elseif bp_used_mbottle > 1:
  910. '<<bp_used_mbottle>> x 250ml bottles'
  911. end
  912. else
  913. 'You pumped <<((bp_used_mbottle*2500)+(bp_used_sbottle*1500)+milkedvolume)/10>>ml of milk from your breasts collecting it in:'
  914. if bp_used_sbottle = 1:
  915. 'One 150ml bottle'
  916. elseif bp_used_sbottle > 1:
  917. '<<bp_used_sbottle>> x 150ml bottles'
  918. end
  919. if bp_used_mbottle = 1:
  920. 'One 250ml bottle'
  921. elseif bp_used_mbottle > 1:
  922. '<<bp_used_mbottle>> x 250ml bottles'
  923. end
  924. if (bp_useable_sbottle - bp_used_sbottle) > 0 and milkedvolume <= 1500:
  925. bottlecounter = 0
  926. :sbottle_restsearchloop
  927. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  928. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  929. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  930. jump 'sbottlefilled_break'
  931. end
  932. bottlecounter += 1
  933. jump 'sbottle_restsearchloop'
  934. end
  935. :sbottlefilled_break
  936. 'You also stored <<milkedvolume/10>>ml of breast milk in a 150ml bottle.'
  937. elseif (bp_useable_mbottle - bp_used_mbottle) > 0 and milkedvolume <= 2500:
  938. bottlecounter = 0
  939. :mbottle_restsearchloop
  940. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  941. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  942. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  943. jump 'mbottlefilled_break'
  944. end
  945. bottlecounter += 1
  946. jump 'mbottle_restsearchloop'
  947. end
  948. :mbottlefilled_break
  949. 'You also stored <<milkedvolume/10>>ml of breast milk in a 250ml bottle.'
  950. else
  951. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  952. 'second fork case'
  953. 'bp_used_mbottle: <<bp_used_mbottle>>'
  954. 'bp_used_sbottle: <<bp_used_sbottle>>'
  955. 'milkedvolume: <<milkedvolume>>'
  956. 'pump_bottletype: <<pump_bottletype>>'
  957. 'bp_useable_sbottle: <<bp_useable_sbottle>>'
  958. 'bp_useable_mbottle: <<bp_useable_mbottle>>'
  959. end
  960. milkedvolume += bp_used_mbottle*2500 + bp_used_sbottle*1500
  961. end
  962. else
  963. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  964. 'third fork case'
  965. 'bp_used_mbottle: <<bp_used_mbottle>>'
  966. 'bp_used_sbottle: <<bp_used_sbottle>>'
  967. 'milkedvolume: <<milkedvolume>>'
  968. 'pump_bottletype: <<pump_bottletype>>'
  969. 'bpbottles: <<mc_inventory[''bottle_s'']>>'
  970. 'bpbottlem: <<mc_inventory[''bottle_m'']>>'
  971. end
  972. else
  973. 'You give it a few more pumps and detach the pump.<br>You filled the bottle with <<milkedvolume/10>>ml of your milk.'
  974. if (bp_useable_sbottle - bp_used_sbottle) > 0 and milkedvolume <= 1500:
  975. bottlecounter = 0
  976. :single_sbottle_searchloop
  977. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  978. if mbarrtype[bottlecounter] = 1500 and mbarrfill[bottlecounter] = 0:
  979. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  980. jump 'single_sbottlefilled_break'
  981. end
  982. bottlecounter += 1
  983. jump 'single_sbottle_searchloop'
  984. end
  985. :single_sbottlefilled_break
  986. elseif (bp_useable_mbottle - bp_used_mbottle) > 0 and milkedvolume <= 2500:
  987. bottlecounter = 0
  988. :single_mbottle_searchloop
  989. if bottlecounter < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  990. if mbarrtype[bottlecounter] = 2500 and mbarrfill[bottlecounter] = 0:
  991. func('lact_bp','fill_milk_bottle',bottlecounter,milkedvolume)
  992. jump 'single_mbottlefilled_break'
  993. end
  994. bottlecounter += 1
  995. jump 'single_mbottle_searchloop'
  996. end
  997. :single_mbottlefilled_break
  998. else
  999. 'unhandled case - you shouldn''t end up here. Please report this in the bug section of Girl Life in the tfg-forums.'
  1000. 'second fork case'
  1001. 'bp_used_mbottle: <<bp_used_mbottle>>'
  1002. 'bp_used_sbottle: <<bp_used_sbottle>>'
  1003. 'milkedvolume: <<milkedvolume>>'
  1004. 'pump_bottletype: <<pump_bottletype>>'
  1005. 'bp_useable_sbottle: <<bp_useable_sbottle>>'
  1006. 'bp_useable_mbottle: <<bp_useable_mbottle>>'
  1007. end
  1008. milkedvolume += bp_used_mbottle*2500 + bp_used_sbottle*1500
  1009. end
  1010. breastcounter += 1
  1011. if energytomilkpump > 0 and pcs_energy = 0:
  1012. '<br>During pumping you feel really hungry, producing breast milk seems to be more exhausting then thought.'
  1013. energytomilkpump = 0
  1014. elseif energytomilkpump > 0:
  1015. '<br>You feel a bit thirsty after pumping.'
  1016. energytomilkpump = 0
  1017. end
  1018. if drugVars['breastcream_dose'] = 1:
  1019. pcs_nips += rand(0,2)
  1020. !! drugVars['breastcream_dose'] = 0
  1021. end
  1022. minut += pumptime
  1023. elseif lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:
  1024. '<center><img <<$set_imgh>> src="images/pc/body/tits/pump_milkdrops.jpg"></center>'
  1025. if pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts <= 0:
  1026. 'As usual, you attach the pump, but after a few pumps white liquid suddenly starts flowing from your nipples.<br>Using the breast pump regularly probably made you lactate!'
  1027. lactation['induced'] = 1
  1028. elseif pcs_usedbreastpumponherself <= 0 and pcs_massagedherbreasts > 0:
  1029. 'You attach the pump but after a few pumps white liquid suddenly comes from your nipples. Regularly massaging your breasts probably made you lactate!<br>'
  1030. lactation['induced'] = 1
  1031. elseif pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts > 0:
  1032. 'You attach the pump but after a few pumps white liquid suddenly comes from your nipples. All that pumping and massaging your breasts probably caused you to lactate!<br>'
  1033. lactation['induced'] = 1
  1034. else
  1035. 'You attach the pump and give it a few pumps. To your surprise white liquid suddenly comes from your nipples. You started lactating!<br>'
  1036. if thinkpreg = 1 or knowpreg = 1:
  1037. 'This is probably happening because you are pregnant.'
  1038. else
  1039. 'You should have this checked out by a doctor. You could be pregnant.'
  1040. end
  1041. lactation['induced'] = 0
  1042. end
  1043. pcs_usedbreastpumponherself = 0
  1044. pcs_massagedherbreasts = 0
  1045. lactation['pc_aware'] = 1
  1046. elseif lactation['active'] = 0 and pain['nipples'] < 60:
  1047. milkedvolume = (func('lact_lib','$get_breastmilk', 3, pumptime))/100
  1048. pcs_usedbreastpumponherself += 1
  1049. '<center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center>'
  1050. if breastcounter < 100:
  1051. 'You attach the pump to your nipples and start squeezing the bulb. The vacuum feels uncomfortable on your nipples.'
  1052. elseif breastcounter >= 100 and breastcounter < 200:
  1053. 'You attach the pump to your nipples and start squeezing the bulb. You are used to the vacuum on your nipples.'
  1054. else
  1055. 'You attach the pump to your nipples and start squeezing the bulb. The vacuum feels good on your nipples.'
  1056. end
  1057. if lactation['prolactinlvl'] > 100: 'A few droplets of liquid come out of your nipples but it is not milk.'
  1058. breastcounter += 1
  1059. if pump_stop_brake = 1:
  1060. 'During pumping your nipples start to hurt extremely. You have to stop after <<pumptime>> minutes, because you couldn''t go on.'
  1061. end
  1062. if lactation['prolactinlvl'] > 100:
  1063. 'After finishing, your breasts feel weirdly engorged.'
  1064. end
  1065. if drugVars['breastcream_dose'] = 1:
  1066. pcs_nips += rand(0,2)
  1067. drugVars['breastcream_dose'] = 0
  1068. end
  1069. minut += pumptime
  1070. else
  1071. 'Your nipples feel too sore to use the pump right now.'
  1072. end
  1073. if milkedvolume > 0:
  1074. lact_engorgement = 0
  1075. lactatemess = 0
  1076. act 'Pour it into the sink':
  1077. *clr
  1078. cla
  1079. piits_i = 0
  1080. :piits_emptyloop
  1081. if piits_i < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  1082. if mbarrmage[piits_i] = (pump_timestamp):mbarrfill[piits_i] = 0
  1083. piits_i += 1
  1084. jump 'piits_emptyloop'
  1085. end
  1086. if milkedvolume > 1500 and mc_inventory['bottle_s'] <= 1:
  1087. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
  1088. '<center>You pour 150ml of your breast milk into the sink and clean up your breast pump.</center>'
  1089. else
  1090. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
  1091. '<center>You pour <<milkedvolume/10>>ml of your breast milk into the sink and clean up your breast pump.</center>'
  1092. end
  1093. minut += ((milkedvolume/1500) + 3)
  1094. act 'Finish':
  1095. milkedvolume = 0
  1096. menu_off = 0 & gt $loc, $loc_arg
  1097. end
  1098. end
  1099. act 'Leave it here':
  1100. *clr
  1101. cla
  1102. 'You screw the cap onto the bottle and put it away.'
  1103. act 'Finish':
  1104. milkedvolume = 0
  1105. menu_off = 0 & gt $loc, $loc_arg
  1106. end
  1107. end
  1108. if pcs_hydra < 100:
  1109. act 'Drink it':
  1110. *clr
  1111. cla
  1112. '<center><img <<$set_imgh>> src="images/pc/body/tits/milk_drink.jpg"></center>'
  1113. '<center>You drink your own breast milk and clean up your breast pump.</center>'
  1114. '<center>The milk is still warm from your breasts.</center>'
  1115. di_i = 0
  1116. :di_emptyloop
  1117. if di_i < (mc_inventory['bottle_m'] + mc_inventory['bottle_s']):
  1118. if mbarrmage[di_i] = (pump_timestamp):mbarrfill[di_i] = 0
  1119. di_i += 1
  1120. jump 'di_emptyloop'
  1121. end
  1122. pcs_health += milkedvolume/400
  1123. pcs_energy += milkedvolume/500
  1124. if pcs_hydra >= 100:
  1125. pcs_hydra += milkedvolume/200
  1126. else
  1127. pcs_hydra += milkedvolume/100
  1128. end
  1129. minut += ((milkedvolume/1000) + 3)
  1130. act 'Finish':
  1131. milkedvolume = 0
  1132. menu_off = 0 & gt $loc, $loc_arg
  1133. end
  1134. end
  1135. end
  1136. else
  1137. act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  1138. end
  1139. end
  1140. if $ARGS[0] = 'hand_milking':
  1141. *clr
  1142. cla
  1143. if lactation['active'] > 0 and pain['nipples'] <= 60 and lactation['pc_aware'] > 0:
  1144. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple.'
  1145. 'Several small streams of your milk start to jet out of your nipples.'
  1146. 'You go on for <<pumptime>> minutes until you stop. You clean yourself up and everything else that got wet from your milk.<br>'
  1147. '<center><video autoplay loop src="images/pc/body/tits/bathroom_milking.mp4"></video></center>'
  1148. milkedvolume = (func('lact_lib','$get_breastmilk', 5, pumptime))/1000
  1149. minut += pumptime
  1150. elseif lactation['active'] > 0 and pain['nipples'] < 60 and lactation['pc_aware'] <= 0:
  1151. '<center><img <<$set_imgh>> src="images/pc/body/tits/lactate_start.jpg"></center>'
  1152. if pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts <= 0:
  1153. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. After a few squeezes white liquid suddenly starts flowing from your nipples.<br>Using the breast pump regularly probably made you lactate!'
  1154. lactation['induced'] = 1
  1155. elseif pcs_usedbreastpumponherself <= 0 and pcs_massagedherbreasts > 0:
  1156. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. After a few squeezes white liquid suddenly starts flowing from your nipples. Regularly massaging your breasts probably made you lactate!<br>'
  1157. lactation['induced'] = 1
  1158. elseif pcs_usedbreastpumponherself > 0 and pcs_massagedherbreasts > 0:
  1159. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. After a few squeezes white liquid suddenly starts flowing from your nipples. All that pumping and massaging your breasts probably caused you to lactate!<br>'
  1160. lactation['induced'] = 1
  1161. else
  1162. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple. To your surprise white liquid suddenly starts flowing from your nipples. You started lactating!<br>'
  1163. if thinkpreg = 1 or knowpreg = 1:
  1164. 'This is probably happening because you are pregnant.'
  1165. else
  1166. 'You should have this checked out by a doctor. You could be pregnant.'
  1167. end
  1168. lactation['induced'] = 0
  1169. end
  1170. pcs_usedbreastpumponherself = 0
  1171. pcs_massagedherbreasts = 0
  1172. lactation['pc_aware'] = 1
  1173. elseif lactation['active'] = 0 and pain['nipples'] <= 60:
  1174. pcs_massagedherbreasts += 0
  1175. 'You start to massage your breasts, your fingers gliding down your breasts skin, over the areolas. Your fingers pressing down into the areola, stretching it forwards to your nipple,'
  1176. 'kneading your breasts as well.'
  1177. '<center><video autoplay loop src="images/pc/body/tits/bathroom_massage.mp4"></video></center>'
  1178. milkedvolume = (func('lact_lib','$get_breastmilk', 5, pumptime))/1000
  1179. minut += pumptime
  1180. else
  1181. 'Your nipples are too sore to hand massage right now.'
  1182. end
  1183. act 'Finish':menu_off = 0 & gt $loc, $loc_arg
  1184. end
  1185. --- lact_bp ---------------------------------