mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added genes on cum-amount and two traits, fixed an issue with PostAdd in some GenitaliaTypeGenes
This commit is contained in:
parent
1db82e96d5
commit
4b5d04af3c
18 changed files with 307 additions and 41 deletions
37
Source/Genes/Cum/CumUtility.cs
Normal file
37
Source/Genes/Cum/CumUtility.cs
Normal file
|
@ -0,0 +1,37 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue