From 92d90dd39e4eddb2dd3c713f5c8465d87023df98 Mon Sep 17 00:00:00 2001 From: Vegapnk Date: Wed, 26 Jun 2024 15:38:16 +0200 Subject: [PATCH] Extra Licentia Checks in Likes Cumflation Gene to fix #105 --- CHANGELOG.md | 2 ++ Source/Genes/Cum/Patch_LikesCumflation.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3852765..5e51795 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ - Issues with Elasticity References (#87) - Null Pointer for LoveFeeding when finding Mechs. Thanks to @Jaaldabaoth (Fixes #90) - Changes to the Implants introduced in 2.0.0 - they imposed a hidden dependency on Royalty (Fixes #89) +- Issues when generating relations (#98, fixed in #106 thanks @Jaaldabaoth) +- Hardening of Licentia Dependencies (#105) **Changes**: diff --git a/Source/Genes/Cum/Patch_LikesCumflation.cs b/Source/Genes/Cum/Patch_LikesCumflation.cs index f25f28c..6b78068 100644 --- a/Source/Genes/Cum/Patch_LikesCumflation.cs +++ b/Source/Genes/Cum/Patch_LikesCumflation.cs @@ -28,6 +28,9 @@ namespace RJW_Genes if (props == null || props.pawn == null || props.partner == null) return; + // Minor Hardening to help with #105 + if (!ModsConfig.IsActive("LustLicentia.RJWLabs")) return; + if (props.pawn.genes != null && props.pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_likes_cumflation) ) { AddOrIncreaseCumflationCounterHediff(props.pawn);