1
0
Kaynağa Gözat

Merge remote-tracking branch 'Milky_boobs/master'

KevinSmarts 5 yıl önce
ebeveyn
işleme
659056b0d8
1 değiştirilmiş dosya ile 10 ekleme ve 17 silme
  1. 10 17
      locations/lact_lib.qsrc

+ 10 - 17
locations/lact_lib.qsrc

@@ -69,6 +69,14 @@ if $ARGS[0] = 'init_breasttissue' and lactation['breasttissueinitiated'] <= 0:
 			lactation['breastdensitytype'] = 1
 		end
 	end
+	!!	setting breastdensitypercent (y) with y = -0,95x + 112 with x being svetas salo
+	if salo <= 20:
+		lactation['breastdensitypercent'] = 93
+	elseif salo > 100:
+		lactation['breastdensitypercent'] = 17
+	else
+		lactation['breastdensitypercent'] = 112 - ((95*salo)/100)
+	end
 	!!	breast tissue that can have mammary glands is nbsize + magicf2b
 	!!	Silicone is obviously not a good material to grow milkglands in
 	!!	full breastccm would be nbsize + magicf2b + silicone.
@@ -86,23 +94,8 @@ if $ARGS[0] = 'init_breasttissue' and lactation['breasttissueinitiated'] <= 0:
 	!!	Getting the usuable amount of breast tissue which can actually have mammary glands (in ccm)
 	lactation['breastuseabletissue'] = ((lactation['nbsizepercent'] + lactation['magicf2bpercent'])*lactation['breastccm'])/100
 	lactation['breastsiliconeccm'] = (lactation['siliconepercent']*lactation['breastccm'])/100
-	!!	Getting mammary gland tissue per breast, based on the breastdensitytype. Explaination on the percentages is in the head of the function.
-	if lactation['breastdensitytype'] = 1:
-		lactation['breastglandtissue'] = (lactation['breastuseabletissue']*17)/100
-		lactation['breastdensitypercent'] = 17
-	elseif lactation['breastdensitytype'] = 2:
-		lactation['breastglandtissue'] = (lactation['breastuseabletissue']*36)/100
-		lactation['breastdensitypercent'] = 36
-	elseif lactation['breastdensitytype'] = 3:
-		lactation['breastglandtissue'] = (lactation['breastuseabletissue']*55)/100
-		lactation['breastdensitypercent'] = 55
-	elseif lactation['breastdensitytype'] = 4:
-		lactation['breastglandtissue'] = (lactation['breastuseabletissue']*74)/100
-		lactation['breastdensitypercent'] = 74
-	elseif lactation['breastdensitytype'] = 5:
-		lactation['breastglandtissue'] = (lactation['breastuseabletissue']*93)/100
-		lactation['breastdensitypercent'] = 93
-	end
+	!!	Getting mammary gland tissue per breast, based on the breastdensitytype/breastdensitypercent. Explaination on the percentages is in the head of the function.
+	lactation['breastglandtissue'] = (lactation['breastuseabletissue']*lactation['breastdensitypercent'])/100
 	!!	calculating breast fat per breast
 	lactation['breastfat'] = lactation['breastuseabletissue'] - lactation['breastglandtissue']
 	!!	calculating alveolicount per breast Alveoli volume 2.18mm² (flat), milk volume 0.18mm³ (flat) and 4mm³ (inflated), milk volume 2mm³ (inflated) 1000 mm³ = 1 cm³