Compare commits

...

3 commits

Author SHA1 Message Date
lutepickle
c6fbab5974 Increment version, update changelog 2022-11-20 21:27:11 -08:00
lutepickle
1b5e204795 Set new babies to baseliner if there's no xenotype to inherit 2022-11-20 21:26:03 -08:00
lutepickle
8d0d980048 Null check in the xenotype decider 2022-11-20 12:42:40 -08:00
4 changed files with 8 additions and 4 deletions

Binary file not shown.

View file

@ -398,7 +398,8 @@ namespace RJW_Menstruation
//fixedIdeo: mother.Ideo,
forbidAnyTitle: true,
forceNoBackstory: true,
forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother)
forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother),
forcedXenotype: ModsConfig.BiotechActive ? XenotypeDefOf.Baseliner : null
);
int division = 1;
@ -634,8 +635,8 @@ namespace RJW_Menstruation
}
XenotypeDef motherInheritableXenotype = mother?.genes?.Xenotype;
XenotypeDef fatherInheritableXenotype = father?.genes?.Xenotype;
if (!motherInheritableXenotype.inheritable) motherInheritableXenotype = null;
if (!fatherInheritableXenotype.inheritable) fatherInheritableXenotype = null;
if (!(motherInheritableXenotype?.inheritable ?? false)) motherInheritableXenotype = null;
if (!(fatherInheritableXenotype?.inheritable ?? false)) fatherInheritableXenotype = null;
// If they're the same (or both null)
if (motherInheritableXenotype == fatherInheritableXenotype)

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RJW Menstruation</identifier>
<version>1.0.8.3</version>
<version>1.0.8.4</version>
<dependencies>
</dependencies>
<incompatibleWith />

View file

@ -1,3 +1,6 @@
Version 1.0.8.4
- Newborns should now be baseliners if there are no xenotypes to inherit.
Version 1.0.8.3
- Compatibility update for RJW 5.3.0.9
- Requires RJW 5.3.0.9