mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Little refactor in ShouldCycle
This commit is contained in:
parent
8e6c38045c
commit
8e9acaa8ca
1 changed files with 2 additions and 5 deletions
|
@ -397,11 +397,8 @@ namespace RJW_Menstruation
|
|||
{
|
||||
if (!Configurations.EnableAnimalCycle && pawn.IsAnimal()) return false;
|
||||
if (pawn.RaceHasOviPregnancy()) return false;
|
||||
if (ModsConfig.BiotechActive && pawn.genes != null)
|
||||
{
|
||||
foreach (GeneDef geneDef in pawn.genes.GenesListForReading.Select(gene => gene.def))
|
||||
if (VariousDefOf.EggLayerGenes.Contains(geneDef)) return false;
|
||||
}
|
||||
if (ModsConfig.BiotechActive && pawn.genes != null &&
|
||||
pawn.genes.GenesListForReading.Select(gene => gene.def).Intersect(VariousDefOf.EggLayerGenes).Any()) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue