Refactor EggLayerGenes a little

This commit is contained in:
lutepickle 2023-12-04 11:56:18 -08:00
parent 32ba7bcef8
commit 02a96b957a
3 changed files with 8 additions and 9 deletions

Binary file not shown.

View File

@ -167,14 +167,13 @@ namespace RJW_Menstruation
get
{
if (egglayergenes != null) return egglayergenes;
egglayergenes = new HashSet<GeneDef>();
GeneDef AG_EggLaying = DefDatabase<GeneDef>.GetNamedSilentFail("AG_EggLaying"); // Alpha Genes
GeneDef VRESaurids_Oviparous = DefDatabase<GeneDef>.GetNamedSilentFail("VRESaurids_Oviparous"); // VE Saurid
GeneDef VRE_SaplingBirth = DefDatabase<GeneDef>.GetNamedSilentFail("VRE_SaplingBirth"); // VE Phytokin
if (AG_EggLaying != null) egglayergenes.Add(AG_EggLaying);
if (VRESaurids_Oviparous != null) egglayergenes.Add(VRESaurids_Oviparous);
if (VRE_SaplingBirth != null) egglayergenes.Add(VRE_SaplingBirth);
egglayergenes = new HashSet<GeneDef>
{
DefDatabase<GeneDef>.GetNamedSilentFail("AG_EggLaying"), // Alpha Genes
DefDatabase<GeneDef>.GetNamedSilentFail("VRESaurids_Oviparous"), // VE Saurid
DefDatabase<GeneDef>.GetNamedSilentFail("VRE_SaplingBirth"), // VE Phytokin
};
egglayergenes.Remove(null);
return egglayergenes;
}

View File

@ -5,7 +5,7 @@ Version 1.0.9.2
- Handle errors more gracefully when starting a pregnancy.
- Fix implanting multiple eggs in an animal when configured to use Biotech pregnancies.
- Egglaying races no longer have a menstrual cycle, regardless of vagina type.
- Pawns with the egglaying genes from Alpha Genes or VE Saurids or Phytokin no longer have a menstrual cycle.
- Pawns with the egglaying genes from Alpha Genes, VE Saurids, or Phytokin no longer have a menstrual cycle.
- The womb status button will now appear in a pawn's health tab when using Compact Hediffs, with thanks to Fern.
- Tampons and pads are now allowed by default in the worker, soldier, and slave starting outfits.