2022-11-21 16:20:50 +00:00
|
|
|
|
namespace RJW_Genes
|
|
|
|
|
{
|
2024-07-08 16:54:37 +00:00
|
|
|
|
public class Gene_ChangeCumAmount : RJW_Gene
|
2022-11-21 16:20:50 +00:00
|
|
|
|
{
|
|
|
|
|
bool has_been_fired = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void PostMake()
|
|
|
|
|
{
|
|
|
|
|
base.PostMake();
|
|
|
|
|
|
2024-07-08 16:54:37 +00:00
|
|
|
|
float multipier = CumUtility.LookupCumMultiplier(this);
|
|
|
|
|
CumUtility.MultiplyFluidAmountBy(pawn, multipier);
|
2022-11-21 16:20:50 +00:00
|
|
|
|
has_been_fired = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void PostAdd()
|
|
|
|
|
{
|
|
|
|
|
base.PostAdd();
|
2024-07-08 16:54:37 +00:00
|
|
|
|
if (!has_been_fired)
|
|
|
|
|
{
|
|
|
|
|
float multipier = CumUtility.LookupCumMultiplier(this);
|
|
|
|
|
CumUtility.MultiplyFluidAmountBy(pawn, multipier);
|
2022-11-21 16:20:50 +00:00
|
|
|
|
has_been_fired = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void PostRemove()
|
|
|
|
|
{
|
|
|
|
|
base.PostAdd();
|
|
|
|
|
|
|
|
|
|
if (has_been_fired)
|
|
|
|
|
{
|
2024-07-08 16:54:37 +00:00
|
|
|
|
float multipier = CumUtility.LookupCumMultiplier(this);
|
|
|
|
|
CumUtility.MultiplyFluidAmountBy(pawn, 1/ multipier);
|
2022-11-21 16:20:50 +00:00
|
|
|
|
has_been_fired = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|