mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
38 lines
703 B
C#
38 lines
703 B
C#
|
using Verse;
|
|||
|
using rjw;
|
|||
|
|
|||
|
namespace RJW_Genes
|
|||
|
{
|
|||
|
public class CumUtility
|
|||
|
{
|
|||
|
|
|||
|
public static void MultiplyFluidAmountBy(Pawn pawn, float multiplier)
|
|||
|
{
|
|||
|
var partBPR = Genital_Helper.get_genitalsBPR(pawn);
|
|||
|
var parts = Genital_Helper.get_PartsHediffList(pawn, partBPR);
|
|||
|
|
|||
|
if (!parts.NullOrEmpty())
|
|||
|
{
|
|||
|
CompHediffBodyPart CompHediff;
|
|||
|
|
|||
|
foreach (Hediff part in parts)
|
|||
|
{
|
|||
|
if (GenitaliaChanger.IsArtificial(part))
|
|||
|
continue;
|
|||
|
|
|||
|
if (rjw.Genital_Helper.is_penis(part))
|
|||
|
{
|
|||
|
CompHediff = part.TryGetComp<rjw.CompHediffBodyPart>();
|
|||
|
if (CompHediff != null)
|
|||
|
{
|
|||
|
CompHediff.FluidAmmount *= multiplier;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|