mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Set up the xenotype inheritance for all babies, not just enzygotic ones
This commit is contained in:
parent
9891f72fc6
commit
82440db26b
4 changed files with 18 additions and 17 deletions
Binary file not shown.
Binary file not shown.
|
@ -409,6 +409,21 @@ namespace RJW_Menstruation
|
||||||
{
|
{
|
||||||
Pawn baby = GenerateBaby(request, mother, father, parentTraits, traitSeed);
|
Pawn baby = GenerateBaby(request, mother, father, parentTraits, traitSeed);
|
||||||
if (baby == null) break;
|
if (baby == null) break;
|
||||||
|
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);
|
||||||
|
if (xenoTypeDef != null) baby.genes.SetXenotypeDirect(xenoTypeDef);
|
||||||
|
if (hybridBaby)
|
||||||
|
{
|
||||||
|
baby.genes.hybrid = true;
|
||||||
|
baby.genes.xenotypeName = "Hybrid".Translate();
|
||||||
|
}
|
||||||
|
}
|
||||||
if (division > 1)
|
if (division > 1)
|
||||||
{
|
{
|
||||||
if (baby.IsHAR()) // necessary for HAR to decide on graphical properties pre-birth
|
if (baby.IsHAR()) // necessary for HAR to decide on graphical properties pre-birth
|
||||||
|
@ -417,22 +432,7 @@ 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 (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);
|
|
||||||
if (xenoTypeDef != null) baby.genes.SetXenotypeDirect(xenoTypeDef);
|
|
||||||
if(hybridBaby)
|
|
||||||
{
|
|
||||||
baby.genes.hybrid = true;
|
|
||||||
baby.genes.xenotypeName = "Hybrid".Translate();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Version 1.0.8.4
|
Version 1.0.8.4
|
||||||
|
- Fix Biotech xenotype inheritance for single-child pregnancies.
|
||||||
- Newborns should now be baseliners if there are no xenotypes to inherit.
|
- Newborns should now be baseliners if there are no xenotypes to inherit.
|
||||||
- The Biotech terminate pregnancy recipe can now terminate a menstruation pregnancy, too.
|
- The Biotech terminate pregnancy recipe can now terminate a menstruation pregnancy, too.
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ Version 1.0.8.2
|
||||||
Version 1.0.8.1
|
Version 1.0.8.1
|
||||||
- Added the option for humans to start Biotech pregnancies if the DLC is enabled. If set, non-humans will use the old multiple pregnancy instead.
|
- Added the option for humans to start Biotech pregnancies if the DLC is enabled. If set, non-humans will use the old multiple pregnancy instead.
|
||||||
- Babies conceived through the multiple pregnancy option will now properly inherit xenotypes.
|
- Babies conceived through the multiple pregnancy option will now properly inherit xenotypes.
|
||||||
- Properly track biotech pregnancy through labor.
|
- Properly track Biotech pregnancy through labor.
|
||||||
- Pawns that are genetically sterile will no longer produce fertile cum, nor have a menstrual cycle.
|
- Pawns that are genetically sterile will no longer produce fertile cum, nor have a menstrual cycle.
|
||||||
- Biotech IUDs will now reduce pregnancy chances the same as an RJW IUD. Using both will not stack.
|
- Biotech IUDs will now reduce pregnancy chances the same as an RJW IUD. Using both will not stack.
|
||||||
- A biotech pregnancy will pause before going into labor if another womb already is in labor.
|
- A biotech pregnancy will pause before going into labor if another womb already is in labor.
|
||||||
|
|
Loading…
Reference in a new issue