mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
resplice patch
This commit is contained in:
parent
0617ea4995
commit
07a0ab0600
11 changed files with 227 additions and 12 deletions
|
@ -39,10 +39,10 @@ namespace RJW_Genes
|
|||
List<GeneDef> absorption_genes_parents = new List<GeneDef>();
|
||||
foreach (GeneDef geneDef in FertilinSourceGenes)
|
||||
{
|
||||
if(mother.genes != null && mother.genes.HasGene(geneDef))
|
||||
if(mother.genes != null && mother.genes.HasActiveGene(geneDef))
|
||||
absorption_genes_parents.Add(geneDef);
|
||||
|
||||
if (father.genes != null && father.genes.HasGene(geneDef))
|
||||
if (father.genes != null && father.genes.HasActiveGene(geneDef))
|
||||
absorption_genes_parents.Add(geneDef);
|
||||
}
|
||||
// Parents had Genes - Pick a random one of them
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue