Make fertilization add to the pawn's record again

This commit is contained in:
lutepickle 2022-06-03 23:08:55 -07:00
parent b5b9002930
commit 4ebf45aeb8
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -1114,7 +1114,7 @@ namespace RJW_Menstruation
{
if (cums.NullOrEmpty()) return null;
float totalFertPower = 0;
List<Cum> eligibleCum = cums.FindAll(c => c.FertVolume > 0 && (RJWPregnancySettings.bestial_pregnancy_enabled || xxx.is_animal(parent.pawn) == xxx.is_animal(c.pawn)));
List<Cum> eligibleCum = cums.FindAll(cum => cum.FertVolume > 0 && (RJWPregnancySettings.bestial_pregnancy_enabled || xxx.is_animal(parent.pawn) == xxx.is_animal(cum.pawn)));
if (eligibleCum.Count == 0) return null;
foreach (Cum cum in eligibleCum)
@ -1123,6 +1123,7 @@ namespace RJW_Menstruation
if (Rand.Range(0.0f, 1.0f) > totalFertPower * Configurations.FertilizeChance * Props.basefertilizationChanceFactor)
return null;
parent.pawn.records.AddTo(VariousDefOf.AmountofFertilizedEggs, 1);
float selection = Rand.Range(0.0f, totalFertPower);
foreach (Cum cum in eligibleCum)