Reduce the leakage per ml
This commit is contained in:
parent
a023c884d3
commit
30329c883b
Binary file not shown.
|
@ -1013,10 +1013,11 @@ namespace RJW_Menstruation
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void CumOut()
|
public void CumOut()
|
||||||
{
|
{
|
||||||
|
const float mlPerFilth = 5.0f;
|
||||||
float leakfactor = 1.0f;
|
float leakfactor = 1.0f;
|
||||||
float totalleak = 0f;
|
float totalleak = 0f;
|
||||||
float cumd = TotalCumPercent;
|
float cumd = TotalCumPercent;
|
||||||
int preCumAmount = Mathf.CeilToInt(TotalCum);
|
int preCumAmount = Mathf.CeilToInt(TotalCum / mlPerFilth);
|
||||||
List<string> filthlabels = new List<string>();
|
List<string> filthlabels = new List<string>();
|
||||||
BeforeCumOut(out Absorber absorber);
|
BeforeCumOut(out Absorber absorber);
|
||||||
if (cums.NullOrEmpty()) return;
|
if (cums.NullOrEmpty()) return;
|
||||||
|
@ -1032,9 +1033,8 @@ namespace RJW_Menstruation
|
||||||
string tmp = "FilthLabelWithSource".Translate(cum.FilthDef.label, cum.pawn?.LabelShort ?? "Unknown", 1.ToString());
|
string tmp = "FilthLabelWithSource".Translate(cum.FilthDef.label, cum.pawn?.LabelShort ?? "Unknown", 1.ToString());
|
||||||
filthlabels.Add(tmp.Replace(" x1", ""));
|
filthlabels.Add(tmp.Replace(" x1", ""));
|
||||||
}
|
}
|
||||||
int postCumAmount = Mathf.CeilToInt(TotalCum);
|
int postCumAmount = Mathf.CeilToInt(TotalCum / mlPerFilth);
|
||||||
int totalFilth = preCumAmount - postCumAmount;
|
for (int i = 0; i < preCumAmount - postCumAmount; i++) // Emit a filth every time the integer cum amount drops
|
||||||
for (int i = 0; i < totalFilth; i++) // Emit a filth every time the integer cum amount drops
|
|
||||||
{
|
{
|
||||||
if (cums.Count > 1) MakeCumFilthMixture(totalleak, filthlabels);
|
if (cums.Count > 1) MakeCumFilthMixture(totalleak, filthlabels);
|
||||||
else if (cums.Count == 1) MakeCumFilth(cums.First(), totalleak);
|
else if (cums.Count == 1) MakeCumFilth(cums.First(), totalleak);
|
||||||
|
|
Loading…
Reference in New Issue