mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Move the xenotype inheritance fully into the gene null check, since it is possible with the hybrid system for two humans to make an animal
This commit is contained in:
parent
040ea6e672
commit
db5813d768
1 changed files with 5 additions and 5 deletions
|
@ -439,13 +439,13 @@ namespace RJW_Menstruation
|
||||||
firstbaby = baby;
|
firstbaby = baby;
|
||||||
request.FixedGender = baby.gender;
|
request.FixedGender = baby.gender;
|
||||||
request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();
|
request.ForcedEndogenes = baby.genes?.Endogenes.Select(gene => gene.def).ToList();
|
||||||
if (GeneUtility.SameHeritableXenotype(mother, father) && mother.genes.UniqueXenotype)
|
|
||||||
{
|
|
||||||
baby.genes.xenotypeName = mother.genes.xenotypeName;
|
|
||||||
baby.genes.iconDef = mother.genes.iconDef;
|
|
||||||
}
|
|
||||||
if (baby.genes != null && ModsConfig.BiotechActive)
|
if (baby.genes != null && ModsConfig.BiotechActive)
|
||||||
{
|
{
|
||||||
|
if (GeneUtility.SameHeritableXenotype(mother, father) && mother.genes.UniqueXenotype)
|
||||||
|
{
|
||||||
|
baby.genes.xenotypeName = mother.genes.xenotypeName;
|
||||||
|
baby.genes.iconDef = mother.genes.iconDef;
|
||||||
|
}
|
||||||
XenotypeDef xenoTypeDef = BabyXenoTypeDecider(mother, father, out bool hybridBaby);
|
XenotypeDef xenoTypeDef = BabyXenoTypeDecider(mother, father, out bool hybridBaby);
|
||||||
if (xenoTypeDef != null) baby.genes.SetXenotypeDirect(xenoTypeDef);
|
if (xenoTypeDef != null) baby.genes.SetXenotypeDirect(xenoTypeDef);
|
||||||
if(hybridBaby)
|
if(hybridBaby)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue