Reduce the leakage per ml

This commit is contained in:
lutepickle 2023-04-13 21:30:06 -07:00
parent a023c884d3
commit 30329c883b
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -1013,10 +1013,11 @@ namespace RJW_Menstruation
/// </summary>
public void CumOut()
{
const float mlPerFilth = 5.0f;
float leakfactor = 1.0f;
float totalleak = 0f;
float cumd = TotalCumPercent;
int preCumAmount = Mathf.CeilToInt(TotalCum);
int preCumAmount = Mathf.CeilToInt(TotalCum / mlPerFilth);
List<string> filthlabels = new List<string>();
BeforeCumOut(out Absorber absorber);
if (cums.NullOrEmpty()) return;
@ -1032,9 +1033,8 @@ namespace RJW_Menstruation
string tmp = "FilthLabelWithSource".Translate(cum.FilthDef.label, cum.pawn?.LabelShort ?? "Unknown", 1.ToString());
filthlabels.Add(tmp.Replace(" x1", ""));
}
int postCumAmount = Mathf.CeilToInt(TotalCum);
int totalFilth = preCumAmount - postCumAmount;
for (int i = 0; i < totalFilth; i++) // Emit a filth every time the integer cum amount drops
int postCumAmount = Mathf.CeilToInt(TotalCum / mlPerFilth);
for (int i = 0; i < preCumAmount - postCumAmount; i++) // Emit a filth every time the integer cum amount drops
{
if (cums.Count > 1) MakeCumFilthMixture(totalleak, filthlabels);
else if (cums.Count == 1) MakeCumFilth(cums.First(), totalleak);