Added genes on cum-amount and two traits, fixed an issue with PostAdd in some GenitaliaTypeGenes

This commit is contained in:
Vegapnk 2022-11-21 17:20:50 +01:00
parent 1db82e96d5
commit 4b5d04af3c
18 changed files with 307 additions and 41 deletions

View file

@ -0,0 +1,34 @@
namespace RJW_Genes
{
public class Gene_NoCum : RJW_Gene
{
bool has_been_fired = false;
public override void PostMake()
{
base.PostMake();
CumUtility.MultiplyFluidAmountBy(pawn, 0f);
has_been_fired = true;
}
public override void PostAdd()
{
base.PostAdd();
if (!has_been_fired) {
CumUtility.MultiplyFluidAmountBy(pawn, 0f);
has_been_fired = true;
}
}
public override void PostRemove()
{
// Cum Removal does not do at the moment :/ I would need to safe the old cum amount but I don't want to at the moment
base.PostAdd();
}
}
}