mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added Gene Aphrodisiac Pheromones and some settings
This commit is contained in:
parent
7bf8efb00d
commit
f0a9cce9c9
12 changed files with 134 additions and 6 deletions
|
@ -47,7 +47,7 @@ namespace RJW_BGS
|
|||
{
|
||||
foreach (BestialityGeneInheritanceDef gene in raceGeneDef.genes)
|
||||
{
|
||||
if (gene.chance >= Rand.Range(0.01f,1f))
|
||||
if (gene.chance * RJW_BGSSettings.global_gene_chance >= Rand.Range(0.01f,1f))
|
||||
{
|
||||
genelist.Add(DefDatabase<GeneDef>.GetNamed(gene.defName));
|
||||
}
|
||||
|
@ -64,8 +64,13 @@ namespace RJW_BGS
|
|||
}
|
||||
}
|
||||
|
||||
//For ParchRJWHediffInsect_egg
|
||||
public static void NewGenes(Pawn mother, Pawn dad, Pawn baby)
|
||||
{
|
||||
if (!RJW_BGSSettings.enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (baby.RaceProps.Humanlike)
|
||||
{
|
||||
if (baby.genes == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue