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

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest> <Manifest>
<identifier>RJW Menstruation</identifier> <identifier>RJW Menstruation</identifier>
<version>1.0.8.3</version> <version>1.0.8.4</version>
<dependencies> <dependencies>
</dependencies> </dependencies>
<incompatibleWith /> <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 Version 1.0.8.3
- Compatibility update for RJW 5.3.0.9 - Compatibility update for RJW 5.3.0.9
- Requires RJW 5.3.0.9 - Requires RJW 5.3.0.9