rjw-genes/1.5/Source/Genes/Fluid/Patches/Patch_Cumpilation_BlockCumflation.cs

19 lines
531 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace RJW_Genes
{
public class Patch_Cumpilation_BlockCumflation
{
public static bool Prepare() => ModsConfig.IsActive("vegapnk.cumpilation");
public static void PostFix(Pawn pawn,ref bool __result) {
if (pawn != null && pawn.genes != null && pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_un_inflatable))
__result = false;
}
}
}