mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
New cleaner method to obtain racegroupdefs and bugfix in Patch_OrgasmRush
This commit is contained in:
parent
c500d4d3c5
commit
b497b9cfc2
8 changed files with 80 additions and 168 deletions
|
@ -21,7 +21,7 @@ namespace RJW_Genes
|
|||
if (props.pawn == null || !props.hasPartner())
|
||||
return;
|
||||
|
||||
if (props.pawn.genes.HasGene(GeneDefOf.rjw_genes_orgasm_rush))
|
||||
if (props.pawn.genes != null && props.pawn.genes.HasGene(GeneDefOf.rjw_genes_orgasm_rush))
|
||||
{
|
||||
props.pawn.needs.rest.CurLevel += REST_INCREASE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue