mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added infectious version of masturbation block, moved masturbation block to reproduction from breeding
This commit is contained in:
parent
32774ca3be
commit
ef73a80728
5 changed files with 41 additions and 3 deletions
|
@ -140,6 +140,7 @@ namespace RJW_Genes
|
|||
public static readonly GeneDef rjw_genes_infectious_homosexuality;
|
||||
public static readonly GeneDef rjw_genes_infectious_hypersexuality;
|
||||
public static readonly GeneDef rjw_genes_stretcher;
|
||||
public static readonly GeneDef rjw_genes_infectious_blocked_masturbation;
|
||||
|
||||
//Other Defs
|
||||
public static readonly XenotypeDef rjw_genes_succubus;
|
||||
|
|
|
@ -14,10 +14,11 @@ namespace RJW_Genes
|
|||
{
|
||||
public void PostFix(Pawn pawn, ref bool __result)
|
||||
{
|
||||
// Simply check if the pawn has genes, and if so, if they have the active gene for blocked masturbation
|
||||
if (pawn.genes != null)
|
||||
if (pawn != null && !pawn.IsAnimal() && pawn.genes != null)
|
||||
{
|
||||
__result = __result && !pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_blocked_masturbation);
|
||||
__result = __result
|
||||
&& !pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_blocked_masturbation)
|
||||
&& !pawn.genes.HasActiveGene(GeneDefOf.rjw_genes_infectious_blocked_masturbation);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue