Cumeater gene, fertilin craving hediff and thought

hediff and thought are just reflavored hemogen hediffs, in the future could customize them some more
This commit is contained in:
Shabakur 2023-01-17 16:44:08 +01:00
parent 5c0af8a430
commit 49cdc09e5f
22 changed files with 246 additions and 109 deletions

View file

@ -12,7 +12,7 @@ namespace RJW_Genes
{
protected override void DoIngestionOutcomeSpecial(Pawn pawn, Thing ingested)
{
if (GeneUtility.HasLifeForce(pawn))
if (GeneUtility.HasLifeForce(pawn) && GeneUtility.HasGeneNullCheck(pawn, GeneDefOf.rjw_genes_cum_eater))
{
float num = ingested.stackCount * this.FertilinPerUnit / 100;
GeneUtility.OffsetLifeForce(GeneUtility.GetLifeForceGene(pawn), num);