lact_bp.qsrc 52 KB

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