Browse Source

[changed] tied up extra location names in lact_lib, updated functions in femcyc, kid and kafe2 to match.
[fixed] night_mode in stat_display lactation display text.
[fixed] ran EOL cleanup.

3xpurt 6 years ago
parent
commit
9aaea4d158
5 changed files with 365 additions and 386 deletions
  1. 2 2
      locations/femcyc.qsrc
  2. 40 40
      locations/kafe2.qsrc
  3. 17 17
      locations/kid.qsrc
  4. 261 259
      locations/lact_lib.qsrc
  5. 45 68
      locations/stat_display.qsrc

+ 2 - 2
locations/femcyc.qsrc

@@ -289,7 +289,7 @@ if $ARGS[0] = '':
 			milkgrowday = daystart
 		end
 	elseif lactate > 0 and milkoverdemand => 0 and prolactinlvl >= 0:
-		lactatemm = func('$calc_lactatemm')
+		lactatemm = func('lact_lib','$calc_lactatemm')
 		!! checking if induced or not and if girl went through pregnancy already.
 		if lactateinduced > 0 and kid <= 0:
 			if milkgrowday < daystart:
@@ -919,7 +919,7 @@ if $ARGS[0] = 'preg':
 			'You begin lactating'
 			lactate = 1
 			lactatemv = 0
-			lactatemm = func('$calc_lactatemm')
+			lactatemm = func('lact_lib','$calc_lactatemm')
 			lacaterate = 10
 			prolactinlvl = 150
 		else

+ 40 - 40
locations/kafe2.qsrc

@@ -41,7 +41,7 @@ if $ARGS[0] = 'toilet':
 	end
 
 	act 'Leave':gt 'kafe', 'workPred'
-	
+
 	act 'Look in the mirror': gt 'mirror', 'start'
 	if pcs_hairbsh = 0: act 'Brush your hair': gt 'mirror', 'brush'
 
@@ -122,7 +122,7 @@ if $ARGS[0] = 'givi':
 						'You bend down behind the bar, out of view of the customers, kneel before Givi and take out his member.'
 						gs 'bdsex', 'autobj'
 						'Givi grabs you hard by the hair and pulls your mouth deeper onto his cock.'
-						
+
 						gs 'arousal', 'bj', 10, 'sub'
 						gs 'stat'
 
@@ -140,7 +140,7 @@ if $ARGS[0] = 'givi':
 
 							gs 'arousal', 'end'
 							gs 'stat'
-							
+
 							act 'Move away':gt 'kafe', 'workPred'
 						end
 					end
@@ -213,7 +213,7 @@ if $ARGS[0] = 'ashot':
 
 				if Ashotrand > 20:
 					'"You''re a cool bitch" says Ashot grabbing your ass.'
-					
+
 					gs 'arousal', 'foreplay', 10, 'sub'
 					gs 'stat'
 
@@ -242,7 +242,7 @@ if $ARGS[0] = 'ashot':
 
 								gs 'arousal', 'anal', 10, 'sub'
 								gs 'stat'
-						
+
 								act 'Moan':
 									*clr
 									cla
@@ -258,7 +258,7 @@ if $ARGS[0] = 'ashot':
 
 									'<center><img <<$set_imgh>> src="images/shared/sex/cum/analcreampie/kafeanpie.jpg"></center>'
 									'Ashot leans forward thrusting his cock as deeply as possible.'
-									
+
 									gs 'arousal', 'anal', 10, 'sub'
 									gs 'stat'
 
@@ -281,7 +281,7 @@ if $ARGS[0] = 'ashot':
 
 							gs 'arousal', 'anal', 10, 'sub'
 							gs 'stat'
-									
+
 							act 'Moan':
 								*clr
 								cla
@@ -294,7 +294,7 @@ if $ARGS[0] = 'ashot':
 
 								'<center><img <<$set_imgh>> src="images/shared/sex/cum/analcreampie/kafeanpie.jpg"></center>'
 								'Ashot leans forward thrusting his cock as deeply as possible.'
-								
+
 								gs 'arousal', 'anal', 10, 'sub'
 								gs 'stat'
 
@@ -313,20 +313,20 @@ if $ARGS[0] = 'ashot':
 				end
 			elseif giviSex = 0 and Ashotsex > 0:
 				'"Sexy girl, with your lovely juicy ass, my dick still remembers skewering it." Says Ashot grabbing your ass.'
-				
+
 				gs 'arousal', 'foreplay', 10, 'sub'
 				gs 'stat'
-									
+
 			end
 		end
 	else
 		'Ashot is putting away his cooking equipment, getting ready to go.'
-		
+
 	end
 
 	gs 'arousal', 'end'
 	gs 'stat'
-		
+
 	act 'Move away':gt 'kafe', 'workPred'
 end
 
@@ -626,7 +626,7 @@ if $ARGS[0] = 'margoroom2':
 		gs 'stat'
 		'<center><img <<$set_imgh>> src="images/beast/zoo/margo6.jpg"></center>'
 		'Margot leans towards the male and shifts to an excellent position to start sucking him. Finally the member of the dog is alert.'
-		
+
 		gs 'arousal', 'voyeur', 15, 'beast'
 		gs 'stat'
 
@@ -647,7 +647,7 @@ if $ARGS[0] = 'margoroom2':
 			gs 'arousal', 'voyeur', 15, 'beast'
 			gs 'arousal', 'end'
 			gs 'stat'
-		
+
 			act 'Walk into the shower with Margaret':gt 'kafe2', 'margoshower'
 		end
 	end
@@ -662,7 +662,7 @@ if $ARGS[0] = 'margoshower':
 
 	gs 'arousal', 'kiss', 15, 'lesbian'
 	gs 'stat'
-		
+
 	act '<font color="magenta">Have her lick your nipples</font>':
 		cls
 
@@ -671,21 +671,21 @@ if $ARGS[0] = 'margoshower':
 		gs 'stat'
 		'<center><img <<$set_imgh>> src="images/beast/zoo/margo2.jpg"></center>'
 		'Margaret takes your swollen nipples into her mouth. She begins to lick them and their sharp little edges'
-		
+
 		gs 'arousal', 'foreplay', 15, 'lesbian', 'dom'
 		gs 'stat'
-	
+
 		if lactate = 1:
 			'You feel your breasts let down, as Margaret continues to suck on your nipples'
 			temp_var = lactatemv + lactaterate
 			if tempvar > 8000:
-				milkedvolume = breastmilkvolume = func('$get_breastmilk', 0, 60)
+				milkedvolume = breastmilkvolume = func('lact_lib','$get_breastmilk', 0, 60)
 				'She sucks for a long while, drinking a full belly of your ample milk.'
-				 
+
 			else
-				milkedvolume = breastmilkvolume = func('$get_breastmilk', 0, 20)
+				milkedvolume = breastmilkvolume = func('lact_lib','$get_breastmilk', 0, 20)
 				'She empties your breasts, and then smiles at you.'
-				 
+
 			end
 		end
 		act 'Carry her out':gt 'korr'
@@ -699,7 +699,7 @@ if $ARGS[0] = 'margoshower':
 		gs 'stat'
 		'<center><img <<$set_imgh>> src="images/beast/zoo/margo3.jpg"></center>'
 		'Margaret kneels down and starts to lick your pussy. Her tongue makes your body tingle with a wave of pleasure.'
-		
+
 		gs 'arousal', 'cuni', 15, 'lesbian', 'dom'
 		gs 'stat'
 
@@ -719,9 +719,9 @@ if $ARGS[0] = 'margoshower':
 		gs 'arousal', 'anal_finger', 15, 'lesbian', 'dom'
 		minut -= 15
 		gs 'stat'
-	
+
 		if pcs_horny >= 99:pcs_horny = 0 & orgasm += 1 & 'You covered orgasm.'
-		
+
 		$orgasm_or = 'yes'
 		gs 'stat'
 
@@ -737,13 +737,13 @@ if $ARGS[0] = 'margoshower':
 
 				gs 'arousal', 'anal_fist', 15, 'lesbian'
 				gs 'stat'
-	
+
 				if pcs_horny >= 90:pcs_horny = 0 & analorgasm += 1 & 'You covered orgasm.'
 
 				$orgasm_or = 'yes'
 				gs 'arousal', 'end'
 				gs 'stat'
-				
+
 				act 'Carry her out':gt 'korr'
 			end
 		end
@@ -757,7 +757,7 @@ if $ARGS[0] = 'margoroom3':
 
 	gs 'arousal', 'kiss', 15, 'lesbian'
 	gs 'stat'
-	
+
 	act 'Have her lick your nipples':
 		cls
 		if MargoSex = 0:MargoSex = 1 & girl += 1
@@ -765,21 +765,21 @@ if $ARGS[0] = 'margoroom3':
 		gs 'stat'
 		'<center><img <<$set_imgh>> src="images/beast/zoo/margo2.jpg"></center>'
 		'Margaret takes your swollen nipples into her mouth. She begins to lick and nibble on them with her sharp little teeth'
-		
+
 		gs 'arousal', 'foreplay', 15, 'lesbian', 'dom'
 		gs 'stat'
-		
+
 		if lactate = 1:
 			'You feel your breasts let down, as Margaret continues to suck on your nipples'
 			temp_var = lactatemv + lactaterate
 			if tempvar > 8000:
-				milkedvolume = breastmilkvolume = func('$get_breastmilk', 0, 60)
+				milkedvolume = breastmilkvolume = func('lact_lib','$get_breastmilk', 0, 60)
 				'She sucks for a long while, drinking a full belly of your ample milk.'
-				 
+
 			else
-				milkedvolume = breastmilkvolume = func('$get_breastmilk', 0, 20)
+				milkedvolume = breastmilkvolume = func('lact_lib','$get_breastmilk', 0, 20)
 				'She empties your breasts, and then smiles at you.'
-				 
+
 			end
 		end
 		act 'Walk into the room':gt 'kafe2', 'margoroom2'
@@ -793,12 +793,12 @@ if $ARGS[0] = 'margoroom3':
 		gs 'stat'
 		'<center><img <<$set_imgh>> src="images/beast/zoo/margo3.jpg"></center>'
 		'Margaret kneels down and starts to lick your pussy. Her tongue makes your body tingle with a wave of pleasure.'
-		
+
 		gs 'arousal', 'cuni', 15, 'lesbian', 'dom'
 		gs 'stat'
 
 		if pcs_horny >= 90:pcs_horny = 0 & orgasm += 1 & 'You have an orgasm.'
-		
+
 		$orgasm_or = 'yes'
 		gs 'stat'
 
@@ -815,12 +815,12 @@ if $ARGS[0] = 'margoroom3':
 
 		gs 'arousal', 'cuni', 15, 'lesbian', 'dom'
 		gs 'stat'
-		
+
 		if pcs_horny >= 99:pcs_horny = 0 & orgasm += 1 & 'You have an orgasm.'
 
 		$orgasm_or = 'yes'
 		gs 'stat'
-		
+
 		act 'Walk into the room':gt 'kafe2', 'margoroom2'
 
 		if pcs_ass > 15 and pcs_horny > 0:
@@ -832,12 +832,12 @@ if $ARGS[0] = 'margoroom3':
 				gs 'stat'
 				'<center><img <<$set_imgh>> src="images/beast/zoo/margo5.jpg"></center>'
 				'First she inserts one finger, then two, three and so on, until eventually she shoves her hand in completely. She quickly found herself in the depths of your ass. It feels unbelievable. Margaret penetrated deeper and deeper and you felt like you were in seventh heaven. It feels impossibly good. Your ass accepted her flexible hand. She starts massaging inside you like a real mistress, causing you to moan loudly and wagging your ass with pleasure.'
-				
+
 				gs 'arousal', 'anal_fist', 15, 'lesbian', 'dom'
 				gs 'stat'
-		
+
 				if pcs_horny >= 90:pcs_horny = 0 & orgasm += 1 & 'You covered orgasm.'
-				
+
 				$orgasm_or = 'yes'
 				gs 'arousal', 'end'
 				gs 'stat'

+ 17 - 17
locations/kid.qsrc

@@ -13,9 +13,9 @@ $breastfeed = {
 		minut += 5
 	else
 		minut += 15
-																																		  
+
 		breastcounter += 1
-		milkedvolume = func('$get_breastmilk', 2, 15)
+		milkedvolume = func('lact_lib','$get_breastmilk', 2, 15)
 		if milkedvolume < 800:
 			'You lift <<$kidname[ks]>> to your breast and feed your baby <<$polreb[ks]>>. Your baby doesn''t seem to be satisfied with the amount of milk.'
 		else
@@ -23,7 +23,7 @@ $breastfeed = {
 		end
 	end
 	'You gently lay <<$kidname[ks]>> back <<$babyloc>>.'
-	act 'Done': 
+	act 'Done':
 		gt 'kid', 'start'
 	end
 }
@@ -51,13 +51,13 @@ $totplay = {
 	'<center><b><font color="maroon"><<$kidname[ks]>> <<$pcs_lastname>></font></b></center>'
 	'<center><img <<$set_imgh>> src="images/pc/activities/tot_play.jpg"></center>'
 	'"Mom! Mom! Mom! Mom!" Yells <<$kidname[ks]>>, "Come play with me!"'
-	'"Ok <<$kidname[ks]>>!" You reply.' 
+	'"Ok <<$kidname[ks]>>!" You reply.'
 	'You pull out a bin of blocks and spend a period of time playing and building with your child.'
 	'After a short time, <<$kidname[ks]>> pushes over the small tower you have built, snickers and runs off'
 	'You get up, straighten up your clothes, laugh, and move on with your day'
 	pcs_mood += 20
 	minut += 20
-	act 'Done': 
+	act 'Done':
 		gt 'kid', 'start'
 	end
 }
@@ -71,7 +71,7 @@ $tottv = {
 	'You watch a cartoon featuring a Rabbit, a Duck, and a Pig that is quite silly'
 	mood += 10
 	minut += 60
-	act 'Done': 
+	act 'Done':
 		gt 'kid', 'start'
 	end
 }
@@ -86,7 +86,7 @@ $kidtv = {
 	'"Well I am gonna watch with you." You reply, followed by tickling <<$kidname[ks]>> to open up a spot on the couch for you to sit.'
 	'You watch a kids TV show about two American teenagers that barely catches your interest.'
 	minut += 60
-	act 'Done': 
+	act 'Done':
 		gt 'kid', 'start'
 	end
 }
@@ -114,7 +114,7 @@ $homework = {
 	end
 	homework[ks] = daystart
 	minut += rand(30,80)
-	act 'Done': 
+	act 'Done':
 		gt 'kid', 'start'
 	end
 }
@@ -134,9 +134,9 @@ if $ARGS[0] = 'start':
 			jump 'loop'
 		end
 		'Child Selected: <<$kidname[ks]>>'
-		if ks > 0:'<a href="exec:ks -= 1& gt ''kid'', ''start'' ">Select Previous Child</a>' 
+		if ks > 0:'<a href="exec:ks -= 1& gt ''kid'', ''start'' ">Select Previous Child</a>'
 		if ks < (kid - 1):'<a href="exec:ks += 1& gt ''kid'', ''start'' ">Select Next Child</a>'
-		
+
 	act 'Leave':
 		cla
 		killvar 'ks'
@@ -147,7 +147,7 @@ end
 if $ARGS[0] = 'kidlist':
 		if kidage[k] < 1:
 			if (month - monthkid[k]) < 1 and (day-daykid[k]) < 7:
-				kiddaycalc[k] = day - daykid[k]	
+				kiddaycalc[k] = day - daykid[k]
 				if kiddaycalc[k] = 1:
 					$kidagetext[k] = '<<kiddaycalc[k]>> day old'
 				else
@@ -198,18 +198,18 @@ if $ARGS[0] = 'kidlist':
 		if ks = k:
 		'<font color= #06992D>Your <<$sdtext[k]>> <<$kidname[k]>> is <<$kidagetext[k]>>. <<$kidposproC[k]>> date of birth is <<monthkid[k]>>/<<daykid[k]>>/<<yearkid[k]>>.</font>'
 		else:
-		'Your <<$sdtext[k]>> <<$kidname[k]>> is <<$kidagetext[k]>>. <<$kidposproC[k]>> date of birth is <<monthkid[k]>>/<<daykid[k]>>/<<yearkid[k]>>.' 
+		'Your <<$sdtext[k]>> <<$kidname[k]>> is <<$kidagetext[k]>>. <<$kidposproC[k]>> date of birth is <<monthkid[k]>>/<<daykid[k]>>/<<yearkid[k]>>.'
 		end
-		
+
 		if kidage[k] < 1:
-			if hour >= 12 and hour < 18: 
+			if hour >= 12 and hour < 18:
 			$babyloc = 'onto the blanket'
 			'<<$kidname[k]>></a> is laying on a blanket'
 			else:
 			$babyloc = 'into the crib'
 			'<<$kidname[k]>> is asleep, lying in <<$kidPosPro[k]>> crib.'
 			end
-			
+
 		elseif kidage[k] >= 1 and kidage[k] < 7:
 			if hour >= 9 and hour < 21 and rkidloc < 8:
 			$totloc = 'playing with toys on the floor'
@@ -236,13 +236,13 @@ if $ARGS[0] = 'kidlist':
 			end
 		end
 		if kid > 0 and kidage[ks] < 1:
-			
+
 			if lactate > 0:
 				act 'Breast Feed <<$kidname[ks]>>':dyneval($breastfeed)
 			end
 			if $babyloc = 'onto the blanket':
 				act 'Play with <<$kidname[ks]>> (0:20)': dyneval($play)
-			end				
+			end
 		end
 		if kid > 0 and kidage[ks] >=1 and kidage[ks] <7:
 			if $totloc = 'playing with toys on the floor':

+ 261 - 259
locations/lact_lib.qsrc

@@ -1,160 +1,85 @@
-!! lact_lib
+# lact_lib
 
-# $calc_lactatemm
+if $ARGS[0] = '$calc_lactatemm':
 
-!! FUNC('calc_lactatemm')
-!! No arguments at the moment. Information is taken from the global variables 'nbsize', 'lactate','lactateinduced','kid'.
-!! lactatemm should be calculated every day, so if the breasts size is changed naturally the lactatemm will get higher. No change when silicone tits happen. Only natural breast tissue should make milk.
-!! Usage: lactatemm = func('$calc_lactatemm')
-!! RESULT = lactatemm in ml*10
+	!! func('lact_lib', 'calc_lactatemm')
+	!! No arguments at the moment. Information is taken from the global variables 'nbsize', 'lactate','lactateinduced','kid'.
+	!! lactatemm should be calculated every day, so if the breasts size is changed naturally the lactatemm will get higher. No change when silicone tits happen. Only natural breast tissue should make milk.
+	!! Usage: lactatemm = func('lact_lib','$calc_lactatemm')
+	!! RESULT = lactatemm in ml*10
 
-if lactate = 0:
-	RESULT = 0
-elseif lactate >0:
-	temp_breastsize = 0
-	temp_breastsize += nbsize
-	temp_var = 0
-	if lactateinduced > 0 and kid <= 0:
-		temp_var = ((8*temp_breastsize*temp_breastsize)+(37*temp_breastsize))/4
-		RESULT = temp_var
+	if lactate = 0:
+		RESULT = 0
+	elseif lactate >0:
+		temp_breastsize = 0
+		temp_breastsize += nbsize
+		temp_var = 0
+		if lactateinduced > 0 and kid <= 0:
+			temp_var = ((8*temp_breastsize*temp_breastsize)+(37*temp_breastsize))/4
+			RESULT = temp_var
+		else
+			RESULT = ((8*temp_breastsize*temp_breastsize)+(37*temp_breastsize))
+		end
 	else
-		RESULT = ((8*temp_breastsize*temp_breastsize)+(37*temp_breastsize))
+		cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$calc_lactatemm</i>!</font></b>'
 	end
-else
-	cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$calc_lactatemm</i>!</font></b>'
 end
 
---- $calc_lactatemm ---------------------------------
+if $ARGS[0] = '$get_breastmilk':
 
-# $get_breastmilk
+	!!	func('lact_lib','$get_breastmilk', sucktion_type, sucktion_time)
+	!!	ARGS[1] = sucktion_type: the type of sucktion. adult_mouth [0], child_mouth [1], baby_mouth [2], manual_breastpump [3] , electric_breastpump [4], hand_expressing [5], cow milker [6]
+	!!	ARGS[2] = sucktion_time: how many minutes the sucking/pumping takes place
+	!!	Usage: breastmilkvolume = func('lact_lib','$get_breastmilk', 4, 20)
+	!! 	RESULT = Milk in ml*10
+	!! what type of sucktion is happening? different sucktion can cause a different demand of breastmilk. Base rate of sucktion is 10ml/minute.
 
-!!	FUNC('$get_breastmilk', sucktion_type, sucktion_time)
-!!	ARGS[0] = sucktion_type: the type of sucktion. adult_mouth [0], child_mouth [1], baby_mouth [2], manual_breastpump [3] , electric_breastpump [4], hand_expressing [5], cow milker [6]
-!!	ARGS[1] = sucktion_time: how many minutes the sucking/pumping takes place
-!!	Usage: breastmilkvolume = func('$get_breastmilk', 4, 20)
-!! 	RESULT = Milk in ml*10
-!! what type of sucktion is happening? different sucktion can cause a different demand of breastmilk. Base rate of sucktion is 10ml/minute.
-soreness_mod = 10
-breastpumped = 1
-!! 'suck_flow_rate initialized'
-if ARGS[0] = 0:
-	!! 'adult sucking'
-	suck_flow_rate = 12 + rand(0,4)
-	temp_var = pcs_mood +(ARGS[1]/8)
-	if temp_var > 100:
-		pcs_mood = 100
-	else
-		pcs_mood += ARGS[1]/8
-	end
-elseif ARGS[0] = 1:
-	!! 'child sucking'
-	suck_flow_rate = 8 + rand(0,2)
-	temp_var = pcs_mood + (ARGS[1]/2)
-	if temp_var > 100:
-		pcs_mood = 100
-	else
-		pcs_mood += ARGS[1]/2
-	end
-elseif ARGS[0] = 2:
-	!!	'baby sucking'
-	suck_flow_rate = 6 + (rand(0,2))
-	temp_var = pcs_mood + ARGS[1]
-	if temp_var > 100:
-		pcs_mood = 100
-	else
-		pcs_mood += ARGS[1]
-	end
-elseif ARGS[0] = 3:
-	!!	'manual_breastpump sucking'
-	suck_flow_rate = 9
-elseif ARGS[0] = 4:
-	!!	'electric_breastpump sucking'
-	suck_flow_rate = 10
-elseif ARGS[0] = 5:
-	!! 'hand expression'
-	suck_flow_rate = 3 + rand(1,2)
-elseif ARGS[0] = 6:
-	!! 'cow milker sucking'
-	suck_flow_rate = 100
-else
-	!! 'suck flow else branch'
-	suck_flow_rate = 10
-end
-!!	If you pump and work your breast more, soreness will decrease after pumping. This can also decline if your breasts arent worked for a longer time.
-if breastcounter > 0:
-	temp_var = breastcounter/10
-	soreness_mod += temp_var
-	if soreness_mod > 20: soreness_mod = 20
-	if nipple_cream = 1:
-		soreness_mod += 10
-		nipple_cream = 0
-	end
-end
-!! No lactation, no milk, but stimulus is applied, so some things are going to happen here.	
-if lactate = 0:
-	if milkoverdemand <= 0: milkoverdemand = 0
-	pump_stop_brake = 0
-	!!	This is how much milk demand is applied to the breasts. In this function it is needed to calculate the nipple pain and breast pain.
-	max_sucktion_demand = 10*suck_flow_rate*ARGS[1]
-	if pain['nipples'] <= 60:
-		suck_until_pain = ((60 - pain['nipples'])*10*(soreness_mod/10))/suck_flow_rate
-	end
-	temp_var = pain['nipples'] + (max_sucktion_demand/100)/(soreness_mod/10)
-	if temp_var > 60:
-		pain['nipples'] = 65
-		pump_stop_brake = 1
-		pumptime = suck_until_pain
-		max_sucktion_demand = 10*suck_flow_rate*pumptime
-	else
-		pain['nipples'] += (max_sucktion_demand/100)/(soreness_mod/10)
-	end
-	
-	temp_var = pain['breasts'] + max_sucktion_demand/1000
-	if temp_var > 20:
-		pain['breasts'] = 25
-	else
-		pain['breasts'] += max_sucktion_demand/1000
-	end
-	!! Pumping breasts is exhausting even if no milk comes. so this is handled here.
-	
-	temp_var = pcs_energy - max_sucktion_demand/1500
-	if temp_var < 0:
-		pcs_energy = 0
-		!! energy usage flag on.
-		energytomilkpump = 1			
-	else
-		pcs_energy -= max_sucktion_demand/1500
-		!! energy usage flag on.
-		energytomilkpump = 1
-	end
-	
-	if pumptime < 10:
-		breastcounter += 1
-	else
-		breastcounter += pumptime/10
-	end
-	
-	milkoverdemand += max_sucktion_demand
-	RESULT = 0
-!! If there is lactation, do the magic
-elseif lactate >0:
-	!!	How much milk can go through the nipple. Base rate is 10ml/minute when sucktion is applied to the nipple. If the demand is higher than the nipple can push through, nipple soreness will happen more quickly.
-	if pcs_nips > 0:
-		max_nip_flow_rate = 6
-	elseif pcs_nips > 20:
-		max_nip_flow_rate = 8
-	elseif pcs_nips > 40:
-		max_nip_flow_rate = 10
-	elseif pcs_nips > 60:
-		max_nip_flow_rate = 12
-	elseif pcs_nips > 80:
-		max_nip_flow_rate = 14
-	elseif pcs_nips > 100:
-		max_nip_flow_rate = 16
+	soreness_mod = 10
+	breastpumped = 1
+	!! 'suck_flow_rate initialized'
+	if ARGS[1] = 0:
+		!! 'adult sucking'
+		suck_flow_rate = 12 + rand(0,4)
+		temp_var = pcs_mood +(ARGS[2]/8)
+		if temp_var > 100:
+			pcs_mood = 100
+		else
+			pcs_mood += ARGS[2]/8
+		end
+	elseif ARGS[1] = 1:
+		!! 'child sucking'
+		suck_flow_rate = 8 + rand(0,2)
+		temp_var = pcs_mood + (ARGS[2]/2)
+		if temp_var > 100:
+			pcs_mood = 100
+		else
+			pcs_mood += ARGS[2]/2
+		end
+	elseif ARGS[1] = 2:
+		!!	'baby sucking'
+		suck_flow_rate = 6 + (rand(0,2))
+		temp_var = pcs_mood + ARGS[2]
+		if temp_var > 100:
+			pcs_mood = 100
+		else
+			pcs_mood += ARGS[2]
+		end
+	elseif ARGS[1] = 3:
+		!!	'manual_breastpump sucking'
+		suck_flow_rate = 9
+	elseif ARGS[1] = 4:
+		!!	'electric_breastpump sucking'
+		suck_flow_rate = 10
+	elseif ARGS[1] = 5:
+		!! 'hand expression'
+		suck_flow_rate = 3 + rand(1,2)
+	elseif ARGS[1] = 6:
+		!! 'cow milker sucking'
+		suck_flow_rate = 100
 	else
-		max_nip_flow_rate = 10
+		!! 'suck flow else branch'
+		suck_flow_rate = 10
 	end
-	
 	!!	If you pump and work your breast more, soreness will decrease after pumping. This can also decline if your breasts arent worked for a longer time.
 	if breastcounter > 0:
 		temp_var = breastcounter/10
@@ -165,125 +90,201 @@ elseif lactate >0:
 			nipple_cream = 0
 		end
 	end
-	
-	!!	If you pump more, more milk will come, disregarding nipplesize. Things will get used to milking and be more loose.
-	nip_flow_mod = 1
-	temp_var = breastcounter/10
-	nip_flow_mod += temp_var
-	if nip_flow > 30: nip_flow_mod = 30
-	max_nip_flow_rate += nip_flow_mod
-	
-	!!	How much milk demand is applied to the breasts. We want to know if we can just suck out what is already stored or if additional milk production is needed to go through the whole pumping/sucking.
-	!!	If we only need 20ml from a 100ml storage, we would only substract 20ml, leaving 80ml inside the breasts.
-	max_sucktion_demand = 10*suck_flow_rate*ARGS[1]
-	!!	Is enough milk already in the breasts?
-	if lactatemv > max_sucktion_demand:
-		!! can the nipples handle the flow?
-		if max_nip_flow_rate >= suck_flow_rate:
-			milkedvolume = max_sucktion_demand
-			lactatemv -= max_sucktion_demand
-		elseif max_nip_flow_rate < suck_flow_rate:
-			milkedvolume = max_nip_flow_rate*10*ARGS[1]
-			lactatemv -= milkedvolume
-			!!	time for sore nipples. We apply more sucking than the nipples can handle. So it hurts more. if nipple pain over 60, then it goes to 65. else it just adds soreness.
-			max_sucktion_demand -= milkedvolume
-			temp_var = pain['nipples'] + (max_sucktion_demand/100)/(soreness_mod/10)
-			if temp_var > 60:
-				pain['nipples'] = 65
-			else
-				pain['nipples'] += (max_sucktion_demand/100)/(soreness_mod/10)
-			end
+	!! No lactation, no milk, but stimulus is applied, so some things are going to happen here.
+	if lactate = 0:
+		if milkoverdemand <= 0: milkoverdemand = 0
+		pump_stop_brake = 0
+		!!	This is how much milk demand is applied to the breasts. In this function it is needed to calculate the nipple pain and breast pain.
+		max_sucktion_demand = 10*suck_flow_rate*ARGS[2]
+		if pain['nipples'] <= 60:
+			suck_until_pain = ((60 - pain['nipples'])*10*(soreness_mod/10))/suck_flow_rate
+		end
+		temp_var = pain['nipples'] + (max_sucktion_demand/100)/(soreness_mod/10)
+		if temp_var > 60:
+			pain['nipples'] = 65
+			pump_stop_brake = 1
+			pumptime = suck_until_pain
+			max_sucktion_demand = 10*suck_flow_rate*pumptime
 		else
-			cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$get_breastmilk</i>!</font></b><b>Error in Lactatemv bigger than max_sucktion_demand fork.</b>'
+			pain['nipples'] += (max_sucktion_demand/100)/(soreness_mod/10)
 		end
-	elseif lactatemv < max_sucktion_demand:
-		!!	Magic!
-		temp_var = (lactatemv/(max_nip_flow_rate*10))
-		if temp_var <= 0 and lactatemv > 0: temp_var = 1
-		pumptime_left = ARGS[1] - temp_var
-		if pumptime_left <= 0 and lactatemv > 0: pumptime_left = 1
-		temp_var = lactaterate/60
-		if temp_var <= 0 and lactaterate > 0: temp_var = 1
-		if temp_var >= max_nip_flow_rate:
-			if ARGS[0] = 2: breastcounter += 50
-			milkedvolume = (max_nip_flow_rate * 10 * pumptime_left) + (max_nip_flow_rate * 10 * (ARGS[1] - pumptime_left))
-			lactatemv -= (max_nip_flow_rate * 10 * (ARGS[1] - pumptime_left))
-		elseif temp_var < max_nip_flow_rate:
-			!!with a baby sucking, more milk should be made due to nature ...
-			if ARGS[0] = 2: milkoverdemand += 100000
-			milkedvolume = (temp_var * pumptime_left) + (max_nip_flow_rate * 10 * (ARGS[1] - pumptime_left))
-			lactatemv -= (max_nip_flow_rate * 10 * (ARGS[1] - pumptime_left))
+
+		temp_var = pain['breasts'] + max_sucktion_demand/1000
+		if temp_var > 20:
+			pain['breasts'] = 25
 		else
-			cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$get_breastmilk</i>!</font></b><b>Error in Lactatemv smaller than max_sucktion_demand fork.</b>'
+			pain['breasts'] += max_sucktion_demand/1000
 		end
-		if lactatemv <= 0: lactatemv = 0
-		!!	the breasts had to produce milk, so energy is used.
-		temp_var = pcs_energy - milkedvolume/1000
+		!! Pumping breasts is exhausting even if no milk comes. so this is handled here.
+
+		temp_var = pcs_energy - max_sucktion_demand/1500
 		if temp_var < 0:
 			pcs_energy = 0
-			if rand(0,100) > 90: fat -= 1
-			!!	this is checking if pcs_energy was impacted during milking.
-			energytomilkpump = 1			
+			!! energy usage flag on.
+			energytomilkpump = 1
 		else
-			pcs_energy -= milkedvolume/1000
-			!!	this is checking if pcs_energy was impacted during milking.
+			pcs_energy -= max_sucktion_demand/1500
+			!! energy usage flag on.
 			energytomilkpump = 1
 		end
-		!! the breasts had to produce milk, so hydration is used.
-		temp_var = pcs_hydra - milkedvolume/500
-		if temp_var < 0:
-			pcs_hydra = 0
-			energytomilkpump = 1			
+
+		if pumptime < 10:
+			breastcounter += 1
 		else
-			pcs_hydra -= milkedvolume/500
-			energytomilkpump = 1
+			breastcounter += pumptime/10
 		end
-		!!	if more is pumped than produced the breasts will hurt too.
-		if milkedvolume < max_sucktion_demand:
-			!!	milkoverdemand: This is used for the daily milk growth. If there is overdemand, the lactaterate will change the next day. Will be set to 0 every day.
-			milkoverdemand += max_sucktion_demand - milkedvolume
-			temp_var = pain['breasts'] + (max_sucktion_demand - milkedvolume)/1000
-			if temp_var > 20:
-				pain['breasts'] = 20
-			else
-				pain['breasts'] += (max_sucktion_demand - milkedvolume)/1000
+
+		milkoverdemand += max_sucktion_demand
+		RESULT = 0
+	!! If there is lactation, do the magic
+	elseif lactate >0:
+		!!	How much milk can go through the nipple. Base rate is 10ml/minute when sucktion is applied to the nipple. If the demand is higher than the nipple can push through, nipple soreness will happen more quickly.
+		if pcs_nips > 0:
+			max_nip_flow_rate = 6
+		elseif pcs_nips > 20:
+			max_nip_flow_rate = 8
+		elseif pcs_nips > 40:
+			max_nip_flow_rate = 10
+		elseif pcs_nips > 60:
+			max_nip_flow_rate = 12
+		elseif pcs_nips > 80:
+			max_nip_flow_rate = 14
+		elseif pcs_nips > 100:
+			max_nip_flow_rate = 16
+		else
+			max_nip_flow_rate = 10
+		end
+
+		!!	If you pump and work your breast more, soreness will decrease after pumping. This can also decline if your breasts arent worked for a longer time.
+		if breastcounter > 0:
+			temp_var = breastcounter/10
+			soreness_mod += temp_var
+			if soreness_mod > 20: soreness_mod = 20
+			if nipple_cream = 1:
+				soreness_mod += 10
+				nipple_cream = 0
 			end
 		end
-		if max_nip_flow_rate < suck_flow_rate:
-			!!	sore nipples again. "used to breastpumping" variable needs to come in here too!
-			temp_var = pain['nipples'] + ((((max_nip_flow_rate*100)/60) * pumptime_left)/100) + (max_sucktion_demand/100)/(soreness_mod/10)
-			if temp_var > 60:
-				pain['nipples'] = 65
+
+		!!	If you pump more, more milk will come, disregarding nipplesize. Things will get used to milking and be more loose.
+		nip_flow_mod = 1
+		temp_var = breastcounter/10
+		nip_flow_mod += temp_var
+		if nip_flow > 30: nip_flow_mod = 30
+		max_nip_flow_rate += nip_flow_mod
+
+		!!	How much milk demand is applied to the breasts. We want to know if we can just suck out what is already stored or if additional milk production is needed to go through the whole pumping/sucking.
+		!!	If we only need 20ml from a 100ml storage, we would only substract 20ml, leaving 80ml inside the breasts.
+		
+		max_sucktion_demand = 10*suck_flow_rate*ARGS[2]
+		!!	Is enough milk already in the breasts?
+		if lactatemv > max_sucktion_demand:
+			!! can the nipples handle the flow?
+			if max_nip_flow_rate >= suck_flow_rate:
+				milkedvolume = max_sucktion_demand
+				lactatemv -= max_sucktion_demand
+			elseif max_nip_flow_rate < suck_flow_rate:
+				milkedvolume = max_nip_flow_rate*10*ARGS[2]
+				lactatemv -= milkedvolume
+				!!	time for sore nipples. We apply more sucking than the nipples can handle. So it hurts more. if nipple pain over 60, then it goes to 65. else it just adds soreness.
+				max_sucktion_demand -= milkedvolume
+				temp_var = pain['nipples'] + (max_sucktion_demand/100)/(soreness_mod/10)
+				if temp_var > 60:
+					pain['nipples'] = 65
+				else
+					pain['nipples'] += (max_sucktion_demand/100)/(soreness_mod/10)
+				end
+			else
+				cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$get_breastmilk</i>!</font></b><b>Error in Lactatemv bigger than max_sucktion_demand fork.</b>'
+			end
+		elseif lactatemv < max_sucktion_demand:
+			!!	Magic!
+			temp_var = (lactatemv/(max_nip_flow_rate*10))
+			if temp_var <= 0 and lactatemv > 0: temp_var = 1
+			pumptime_left = ARGS[2] - temp_var
+			if pumptime_left <= 0 and lactatemv > 0: pumptime_left = 1
+			temp_var = lactaterate/60
+			if temp_var <= 0 and lactaterate > 0: temp_var = 1
+			if temp_var >= max_nip_flow_rate:
+				if ARGS[1] = 2: breastcounter += 50
+				milkedvolume = (max_nip_flow_rate * 10 * pumptime_left) + (max_nip_flow_rate * 10 * (ARGS[2] - pumptime_left))
+				lactatemv -= (max_nip_flow_rate * 10 * (ARGS[2] - pumptime_left))
+			elseif temp_var < max_nip_flow_rate:
+				!!with a baby sucking, more milk should be made due to nature ...
+				if ARGS[1] = 2: milkoverdemand += 100000
+				milkedvolume = (temp_var * pumptime_left) + (max_nip_flow_rate * 10 * (ARGS[2] - pumptime_left))
+				lactatemv -= (max_nip_flow_rate * 10 * (ARGS[2] - pumptime_left))
+			else
+				cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$get_breastmilk</i>!</font></b><b>Error in Lactatemv smaller than max_sucktion_demand fork.</b>'
+			end
+			if lactatemv <= 0: lactatemv = 0
+			!!	the breasts had to produce milk, so energy is used.
+			temp_var = pcs_energy - milkedvolume/1000
+			if temp_var < 0:
+				pcs_energy = 0
+				if rand(0,100) > 90: fat -= 1
+				!!	this is checking if pcs_energy was impacted during milking.
+				energytomilkpump = 1
 			else
-				pain['nipples'] += ((((max_nip_flow_rate*100)/60) * pumptime_left)/100) + (max_sucktion_demand/100)/(soreness_mod/10)
-			end			
+				pcs_energy -= milkedvolume/1000
+				!!	this is checking if pcs_energy was impacted during milking.
+				energytomilkpump = 1
+			end
+			!! the breasts had to produce milk, so hydration is used.
+			temp_var = pcs_hydra - milkedvolume/500
+			if temp_var < 0:
+				pcs_hydra = 0
+				energytomilkpump = 1
+			else
+				pcs_hydra -= milkedvolume/500
+				energytomilkpump = 1
+			end
+			!!	if more is pumped than produced the breasts will hurt too.
+			if milkedvolume < max_sucktion_demand:
+				!!	milkoverdemand: This is used for the daily milk growth. If there is overdemand, the lactaterate will change the next day. Will be set to 0 every day.
+				milkoverdemand += max_sucktion_demand - milkedvolume
+				temp_var = pain['breasts'] + (max_sucktion_demand - milkedvolume)/1000
+				if temp_var > 20:
+					pain['breasts'] = 20
+				else
+					pain['breasts'] += (max_sucktion_demand - milkedvolume)/1000
+				end
+			end
+			if max_nip_flow_rate < suck_flow_rate:
+				!!	sore nipples again. "used to breastpumping" variable needs to come in here too!
+				temp_var = pain['nipples'] + ((((max_nip_flow_rate*100)/60) * pumptime_left)/100) + (max_sucktion_demand/100)/(soreness_mod/10)
+				if temp_var > 60:
+					pain['nipples'] = 65
+				else
+					pain['nipples'] += ((((max_nip_flow_rate*100)/60) * pumptime_left)/100) + (max_sucktion_demand/100)/(soreness_mod/10)
+				end
+			end
 		end
-	end
-	!! The standard nipple pain applied due to pumping. Adding to the pain that is calculated above
-	temp_var = pain['nipples'] + (max_sucktion_demand/100)/(soreness_mod/10)
-	if temp_var > 60:
-		pain['nipples'] = 65
-	else
-		pain['nipples'] += (max_sucktion_demand/100)/(soreness_mod/10)
-	end
-	
-	if pumptime < 10:
-		breastcounter += 1
+		!! The standard nipple pain applied due to pumping. Adding to the pain that is calculated above
+		temp_var = pain['nipples'] + (max_sucktion_demand/100)/(soreness_mod/10)
+		if temp_var > 60:
+			pain['nipples'] = 65
+		else
+			pain['nipples'] += (max_sucktion_demand/100)/(soreness_mod/10)
+		end
+
+		if pumptime < 10:
+			breastcounter += 1
+		else
+			breastcounter += pumptime/10
+		end
+
+		RESULT = milkedvolume
 	else
-		breastcounter += pumptime/10
+		cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$get_breastmilk</i>!</font></b>'
 	end
-	
-	RESULT = milkedvolume
-else
-	cls & '<b><font color="red">BAD ARGUMENT CHECK IN <i>$get_breastmilk</i>!</font></b>'
 end
 
---- $get_breastmilk ---------------------------------
-
-# lact_lib
+!! lact_lib
 
 !!	bp_milking - breast pump milking
 !!	use href="exec:gt ''lact_lib'',''bp_milking''"
+
 if $ARGS[0] = 'bp_milking':
 	pumptime = 0
 	pumptype = 0
@@ -294,17 +295,18 @@ if $ARGS[0] = 'bp_milking':
 		cla
 		pumptime = input ("How long do you plan to pump your breasts? (Not more than 60 minutes)")
 		if pumptime <= 0 or pumptime > 60:
-			minut += 2			
-			act 'Don''t pump':gt $loc, $metka	
+			minut += 2
+			act 'Don''t pump':gt $loc, $metka
 		elseif pumptime > 0 and pumptime <= 60:
 			gt 'lact_lib', 'milking'
-		end	
+		end
 	end
 end
 
 !!	man_milking - manual (with hands) milking
 !!	use href="exec:gt ''lact_lib'',''man_milking''"
-if $ARGS[0] = 'man_milking':	
+
+if $ARGS[0] = 'man_milking':
 	pumptime = 0
 	pumptype = 1
 	if $location_type ! 'bathroom' and pcs_exhibition < 60:
@@ -314,8 +316,8 @@ if $ARGS[0] = 'man_milking':
 		cla
 		pumptime = input ("How long would you like to milk your breasts? (Not more than 60 minutes)")
 		if pumptime <= 0 or pumptime > 60:
-			minut += 2			
-			act 'Don''t milk':gt $loc, $metka	
+			minut += 2
+			act 'Don''t milk':gt $loc, $metka
 		elseif pumptime > 0 and pumptime <= 60:
 			gt 'lact_lib', 'milking'
 		end
@@ -332,8 +334,8 @@ if $ARGS[0] = 'milking':
 	if pumptype = 1:
 		pumptime = (pumptime*6)/10
 	end
-	if lactate > 0 and pain['nipples'] < 60:				
-		milkedvolume = func('$get_breastmilk', 3, pumptime)
+	if lactate > 0 and pain['nipples'] < 60:
+		milkedvolume = func('lact_lib','$get_breastmilk', 3, pumptime)
 		'<center><img <<$set_imgh>> src="images/pc/body/tits/pump_lactating.jpg"></center>'
 		'You attach the pump to your breast and start rythmically squeezing the bulb until your breasts feel empty.<br>You give it a few more pumps and detach the pump.<br>You filled the bottle with <<milkedvolume/10>>ml of your milk.'
 		breastcounter += 1
@@ -355,13 +357,13 @@ if $ARGS[0] = 'milking':
 			'As usual, you attach the pump but after a few pumps white liquid suddenly starts flowing from your nipples.<br>You started lactating!'
 			lactateinduced = 1
 			lactate = 1
-			if func('$calc_lactatemm') > 0: lactatemm = func('$calc_lactatemm')
+			if func('lact_lib','$calc_lactatemm') > 0: lactatemm = func('lact_lib','$calc_lactatemm')
 			if prolactinlvl < 200: prolactinlvl = 200
 			lactaterate = 10*(prolactinlvl/200)
 			pcs_nips += 2
 			pumpinggrowth = 0
 		else
-			milkedvolume = func('$get_breastmilk', 3, pumptime)
+			milkedvolume = func('lact_lib','$get_breastmilk', 3, pumptime)
 			'<center><img <<$set_imgh>> src="images/pc/body/tits/t<<tits>>.jpg"></center>'
 			'You attach the pump to your nipples and start squeezing the bulb. The vacuum feels good on your nipples.'
 			if prolactinlvl > 70: 'A few droplets of liquid come out of your nipples but it is not milk.'
@@ -392,11 +394,11 @@ if $ARGS[0] = 'milking':
 			cla
 			'<center><img <<$set_imgh>> src="images/pc/body/tits/milk_sink.jpg"></center>'
 			'<center>You pour <<milkedvolume/10>>ml of your breast milk into the sink and clean up your breastpump.</center>'
-			minute += 5			
+			minute += 5
 			act 'Finish':
 				milkedvolume = 0
 				gt $loc, $metka
-			end	
+			end
 		end
 		if pcs_hydra < 100:
 			act 'Drink it':
@@ -414,17 +416,17 @@ if $ARGS[0] = 'milking':
 				act 'Finish':
 					milkedvolume = 0
 					gt $loc, $metka
-				end					
+				end
 			end
 		end
 	else
 		act 'Finish':gt $loc, $metka
-	end	
+	end
 end
 
-
 !!	engorged_morning
 !!	use href="exec:gt ''lact_lib'',''engorged_morning''"
+
 if $ARGS[0] = 'engorged_morning':
 	minut += 5
 	'<center><img <<$set_imgh>> src="images/pc/body/tits/lactate_start.jpg"></center>'
@@ -432,4 +434,4 @@ if $ARGS[0] = 'engorged_morning':
 	act 'Finish':gt $loc, $metka
 end
 
---- balkon ---------------------------------
+--- lac_lib ---------------------------------

+ 45 - 68
locations/stat_display.qsrc

@@ -84,7 +84,7 @@ if pcs_sleep > 100: pcs_sleep = 100
 !!----------------image Extra messages, start--------------------------
 $stat_imgtool_msg=''
 $stat_imgextra_msg=''
-	
+
 if Enable_showstatimg = 1 or Enable_statimg_loc > 0:
 	!There are 3 display mode, with toobar / top / bottom, controlled by Enable_statimg_loc
 	if Enable_statimg_face = 0:
@@ -101,7 +101,7 @@ if Enable_showstatimg = 1 or Enable_statimg_loc > 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_body = 0 & gs ''$menu_obnovit''">◆Body</a>'
 		$img_temp = FUNC('$body_image','body')
 		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
-	end	
+	end
 
 	if Enable_statimg_coat = 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_coat = 1 & gs ''$menu_obnovit''">◇Coat</a>'
@@ -109,7 +109,7 @@ if Enable_showstatimg = 1 or Enable_statimg_loc > 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_coat = 0 & gs ''$menu_obnovit''">◆Coat</a>'
 		$img_temp = FUNC('$body_image','coat')
 		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
-	end	
+	end
 
 	if Enable_statimg_cloth = 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_cloth = 1 & gs ''$menu_obnovit''">◇Clothes</a>'
@@ -117,7 +117,7 @@ if Enable_showstatimg = 1 or Enable_statimg_loc > 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_cloth = 0 & gs ''$menu_obnovit''">◆Clothes</a>'
 		$img_temp = FUNC('$body_image','clothes')
 		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
-	end	
+	end
 
 	if Enable_statimg_bra = 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_bra = 1 & gs ''$menu_obnovit''">◇Bra</a>'
@@ -133,7 +133,7 @@ if Enable_showstatimg = 1 or Enable_statimg_loc > 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_panties = 0 & gs ''$menu_obnovit''">◆Panties</a>'
 		$img_temp = FUNC('$body_image','panties')
 		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
-	end	
+	end
 
 	if Enable_statimg_shoes = 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_shoes = 1 & gs ''$menu_obnovit''">◇Shoes</a>'
@@ -141,9 +141,9 @@ if Enable_showstatimg = 1 or Enable_statimg_loc > 0:
 		$stat_imgtool_msg += ' <a href="exec:Enable_statimg_shoes = 0 & gs ''$menu_obnovit''">◆Shoes</a>'
 		$img_temp = FUNC('$body_image','shoes')
 		if $img_temp ! null:  $stat_imgextra_msg += '<a href="exec:view ''<<$img_temp>>''"><img <<$set_statimgh>> src="<<$img_temp>>"></a> '
-	end	
+	end
 	$stat_imgtool_msg += ' <a href="exec:gs ''Cheatmenu_din'' & Enable_settingmode = 1 & dynamic $cheatmenu[''display'']">◎Setting</a>'
-	
+
 end
 !!----------------image Extra messages, end --------------------------
 
@@ -171,7 +171,7 @@ if bankAccount = 0 and stolmoney = 0:
 else
 	!combine money status to single line
 	$stat_msg += '<BR><<$pockets>>: <b><<money>> ₽</b>'
-	if stolmoney > 0: $stat_msg += ', Drawer <b><<stolmoney>> ₽</b>'	
+	if stolmoney > 0: $stat_msg += ', Drawer <b><<stolmoney>> ₽</b>'
 	if bankAccount = 1:
 		if karta >= 0:
 			$stat_msg += ', Bank: <b><<karta>> ₽</b>'
@@ -315,7 +315,7 @@ else
 		end
 		gs 'indik', '1', pcs_apprnc / 2, pcs_apprnc
 		$stat_extra_msg += '<BR><<$ind>> Attractiveness'
-	
+
 		if SchoolAtestat = 0 and StoryLine > 0:
 			gs 'indik', '1', pcs_grades, pcs_grades
 			$stat_extra_msg += '<BR><<$ind>> School Grades'
@@ -328,7 +328,7 @@ else
 			gs 'indik', '1', pcs_heels, pcs_heels
 			$stat_extra_msg += '<BR><<$ind>> Heels skill'
 		end
-		$stat_extra_msg += '<BR>' 
+		$stat_extra_msg += '<BR>'
 	end
 end
 killvar '$st_temp'
@@ -409,16 +409,16 @@ else
 		if pcs_servng > 0: gs 'show_table', '<<pcs_servng>> Serving', '2'
 		if pcs_medcn > 0: gs 'show_table', '<<pcs_medcn>> Medicine', '2'
 		if workPTU > 1: gs 'show_table','<<teachlevel>> Teacher credibility','2'
-	end	
+	end
 	!skip if this is first message
-	if $stat_extra_msg ! null: 
+	if $stat_extra_msg ! null:
 		$stat_extra_msg += '<br><a href="exec:Enable_showskill = 0 & gs ''$menu_obnovit''">▲Skills:</a> <<$stat_sktool_msg>>'
 	else
 		$stat_extra_msg += '<br><<$stat_sktool_msg>>'
 	end
 	if st_count > 0 :
 		$stat_extra_msg += '<BR><TABLE BORDER=1><<$show_table>></TR></TABLE>'
-	end	
+	end
 end
 
 killvar 'stat_sktool_msg'
@@ -472,9 +472,9 @@ if Enable_statimg_loc = 0:
 	if Enable_showstatimg = 0:
 		$stat_tool_msg += ' <a href="exec:Enable_showstatimg = 1 & gs ''$menu_obnovit''">▽Image</a>'
 	else
-		$stat_tool_msg += ' <a href="exec:Enable_showstatimg = 0 & gs ''$menu_obnovit''">▲Image</a>'	
+		$stat_tool_msg += ' <a href="exec:Enable_showstatimg = 0 & gs ''$menu_obnovit''">▲Image</a>'
 		!skip if this is first message
-		if $stat_extra_msg ! null: 
+		if $stat_extra_msg ! null:
 			$stat_extra_msg += '<br><a href="exec:Enable_showstatimg = 0 & gs ''$menu_obnovit''">▲Image:</a> <<$stat_imgtool_msg>>'
 		else
 			$stat_extra_msg += '<br><<$stat_imgtool_msg>>'
@@ -669,22 +669,15 @@ end
 if lactate = 1 and night_mode = 0:
 	if lactatemv >= lactatemm-1:
 		if lact_engorgement > 3 and lact_engorgement <= 6:
-									
 			$stat_msg += '<BR><font color = red>Your breasts are so full they hurt and you can feel milk seeping out.</font><BR>'
 		elseif lact_engorgement > 6:
-																									
-								 
 			$stat_msg += '<BR><font color = red>Your breasts are so full they hurt and you can feel your milk spraying out.</font><BR>'
-								 
-																					  
-					   
-																													  
 		else
 			$stat_msg += '<BR><font color = orange>Your breasts are so full they hurt.</font><BR>'
 		end
 		if $clothingworntype = 'nude' and lactatemess > 0:
 			if lactatemess < 3:
-				$stat_msg += '<font color = black>You have a little milk residue around your nipples.</font>'
+				$stat_msg += ''+iif(night_mode = 1,'<font color = white>','<font color = black>')+'You have a little milk residue around your nipples.</font>'
 			elseif lactatemess < 7:
 				$stat_msg += '<font color = orange>You have a lot of milk residue around your nipples.</font>'
 			else
@@ -698,35 +691,19 @@ if lactate = 1 and night_mode = 0:
 			else
 				$stat_msg += '<font color = red>Your shirt is drenched with milk from your breasts.</font>'
 			end
-		end		
-	elseif lactatemv > lactatemm*9/10:
-		$stat_msg += '<BR><font color = black>Your breasts are firm and full, and starting to hurt from all the milk they contain.</font><BR>'
-	elseif lactatemv > lactatemm*3/4:
-		$stat_msg += '<BR><font color = black>Your breasts feel firm and heavy, full of milk.</font><BR>'
-	elseif lactatemv > lactatemm/2:
-		$stat_msg += '<BR><font color = black>Your breasts are heavy, a cargo of milk inside.</font><BR>'
-	elseif lactatemv > lactatemm/4:
-		$stat_msg += '<BR><font color = black>Your breasts feel a little heavy.</font><BR>'
-	elseif lactatemv > 0:
-		$stat_msg += '<BR><font color = black>Your breasts tingle a little from the feeling of milk production.</font><BR>'
-	else
-		$stat_msg += '<BR><font color = black>Your breasts feel soft and empty.</font><BR>'
-	end
-elseif lactate = 1 and night_mode = 1:
-	if lactatemv >= lactatemm-1:
-		$stat_msg += '<BR><font color = white>Your breasts are so full they hurt.</font><BR>'
+		end
 	elseif lactatemv > lactatemm*9/10:
-		$stat_msg += '<BR><font color = white>Your breasts are firm and full, and starting to hurt from all the milk they contain.</font><BR>'
+		$stat_msg += '<BR>'+iif(night_mode = 1,'<font color = white>','<font color = black>')+'Your breasts are firm and full, and starting to hurt from all the milk they contain.</font><BR>'
 	elseif lactatemv > lactatemm*3/4:
-		$stat_msg += '<BR><font color = white>Your breasts feel firm and heavy, full of milk.</font><BR>'
+		$stat_msg += '<BR>'+iif(night_mode = 1,'<font color = white>','<font color = black>')+'Your breasts feel firm and heavy, full of milk.</font><BR>'
 	elseif lactatemv > lactatemm/2:
-		$stat_msg += '<BR><font color = white>Your breasts are heavy, a cargo of milk inside.</font><BR>'
+		$stat_msg += '<BR>'+iif(night_mode = 1,'<font color = white>','<font color = black>')+'Your breasts are heavy, a cargo of milk inside.</font><BR>'
 	elseif lactatemv > lactatemm/4:
-		$stat_msg += '<BR><font color = white>Your breasts feel a little heavy.</font><BR>'
+		$stat_msg += '<BR>'+iif(night_mode = 1,'<font color = white>','<font color = black>')+'Your breasts feel a little heavy.</font><BR>'
 	elseif lactatemv > 0:
-		$stat_msg += '<BR><font color = white>Your breasts tingle a little from the feeling of milk production.</font><BR>'
+		$stat_msg += '<BR>'+iif(night_mode = 1,'<font color = white>','<font color = black>')+'Your breasts tingle a little from the feeling of milk production.</font><BR>'
 	else
-		$stat_msg += '<BR><font color = white>Your breasts feel soft and empty.</font><BR>'
+		$stat_msg += '<BR>'+iif(night_mode = 1,'<font color = white>','<font color = black>')+'Your breasts feel soft and empty.</font><BR>'
 	end
 end
 
@@ -803,7 +780,7 @@ if arrsize('sparrvol') > 0:
 						j = 3
 					end
 				end
-				
+
 				cumvolume['<<i>>:<<j>>'] += sparrvol[idx]
 				if sparrvol[idx] > 0:
 					if sparridt[idx] = 0:
@@ -841,29 +818,29 @@ killvar 'cumloc'
 
 i = 0
 :cumlocloop
-	if i = 0: 
+	if i = 0:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/creampie/cumpussy'+rand(1,14)+'.jpg''">pussy</a>'
-	elseif i = 1: 
+	elseif i = 1:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumpussy/cumpus'+rand(1,4)+'.jpg''">labia</a>'
-	elseif i = 2: 
+	elseif i = 2:
 		$txtloc = 'the front of your panties'
-	elseif i = 3: 
+	elseif i = 3:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumanal/cumanal'+rand(1,11)+'.jpg''">ass</a>'
-	elseif i = 4: 
+	elseif i = 4:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumass/cumass'+rand(1,6)+'.jpg''">butt</a>'
-	elseif i = 5: 
+	elseif i = 5:
 		$txtloc = 'the back of your panties'
-	elseif i = 6: 
+	elseif i = 6:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumclothes/'+rand(1,3)+'.jpg''">clothes near your groin</a>'
-	elseif i = 7: 
+	elseif i = 7:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumclothes/cumclothes'+rand(1,21)+'.jpg''">clothes</a>'
-	elseif i = 8: 
+	elseif i = 8:
 		$txtloc = 'your back'
-	elseif i = 9: 
+	elseif i = 9:
 		$txtloc = 'your legs'
-	elseif i = 10: 
+	elseif i = 10:
 		$txtloc = 'your arms'
-	elseif i = 11: 
+	elseif i = 11:
 		if pcs_haircol = 0:
 			$cum_face_image = 'brown/'
 			$cum_face_image += rand(1, 31)
@@ -882,20 +859,20 @@ i = 0
 		end
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumface/<<$cum_face_image>>.jpg''">face</a>'
 		killvar 'cum_face_image'
-	elseif i = 13: 
+	elseif i = 13:
 		$txtloc = 'your hands'
-	elseif i = 14: 
+	elseif i = 14:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumbelly/cumbelly'+rand(1,12)+'.jpg''">stomach</a>'
-	elseif i = 15: 
+	elseif i = 15:
 		$txtloc = 'your <a href="exec:view''images/pc/body/cum/cumtits/cumtits'+rand(1,19)+'.jpg''">breasts</a>'
-	elseif i = 16: 
+	elseif i = 16:
 		$txtloc = 'your hair</a>'
-	elseif i = 17: 
+	elseif i = 17:
 		$txtloc = 'in your vagina in a slipped condom'
 	else
 		$txtloc = 'the gusset of your panties</a>'
 	end
-	
+
 	j = 0
 	:ageloop
 		if cumvolume['<<i>>:<<j>>'] > 0:
@@ -915,7 +892,7 @@ i = 0
 				!! residue amount, no leakage
 				$txtamount = 'Small '
 			end
-			
+
 			!! if sperm age stage is 4, it means inside the body
 			if j = 4:
 				if (vibratorIN = 1 and i = 0) or (analplugin = 1 and i = 3):
@@ -933,7 +910,7 @@ i = 0
 						$txtproxy = 'seeping out of '
 					else
 						$txtproxy = 'staying inside of '
-					end	
+					end
 				end
 			elseif j >= 5:
 			!! if sperm age stage is over 4, meaning in condom
@@ -965,7 +942,7 @@ i = 0
 					$txtproxy += 'powderly '
 				end
 			end
-			
+
 			$txtperson = ''
 			if cumcount['<<i>>:<<j>>'] = 0:
 				$txtiscum = 'some whitish substance '