mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added Elasticity Gene and Zoophile Trait Gene
This commit is contained in:
parent
f17da08394
commit
84c0ab012e
15 changed files with 227 additions and 19 deletions
|
@ -1,4 +1,5 @@
|
|||
using Verse;
|
||||
using System;
|
||||
using Verse;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
|
@ -22,7 +23,7 @@ namespace RJW_Genes
|
|||
return pawn.genes.HasGene(GeneDefOf.rjw_genes_insectincubator);
|
||||
}
|
||||
|
||||
public static bool isInsectBreeder(Pawn pawn)
|
||||
public static bool IsInsectBreeder(Pawn pawn)
|
||||
{
|
||||
if (pawn.genes == null)
|
||||
{
|
||||
|
@ -40,5 +41,23 @@ namespace RJW_Genes
|
|||
}
|
||||
return MaxEggSize;
|
||||
}
|
||||
|
||||
internal static bool IsElastic(Pawn pawn)
|
||||
{
|
||||
if (pawn.genes == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return pawn.genes.HasGene(GeneDefOf.rjw_genes_elasticity);
|
||||
}
|
||||
|
||||
public static bool IsCumflationImmune(Pawn pawn)
|
||||
{
|
||||
if (pawn.genes == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return pawn.genes.HasGene(GeneDefOf.rjw_genes_cumflation_immunity);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue