Add interspecies factor to implantation failure debug message

This commit is contained in:
lutepickle 2023-11-11 21:20:31 -08:00
parent 68c4081f11
commit cb5522b0c3
1 changed files with 6 additions and 3 deletions

View File

@ -1499,11 +1499,14 @@ namespace RJW_Menstruation
}
}
else
{
{
if (Configurations.Debug)
{
float implantChance = Configurations.ImplantationChance * ImplantChance * InterspeciesImplantFactor(egg.fertilizer);
Log.Message($"Fertilized egg of {Pawn} failed to implant (chance {implantChance.ToStringPercent()}, father {egg.fertilizer})");
float interspeciesFactor = InterspeciesImplantFactor(egg.fertilizer);
float implantChance = Configurations.ImplantationChance * ImplantChance * interspeciesFactor;
Log.Message($"Fertilized egg of {Pawn} failed to implant (chance {implantChance.ToStringPercent()}, " +
(interspeciesFactor < 1.0f ? $"interspecies factor {interspeciesFactor.ToStringPercent()}, " : "" ) +
$"father {egg.fertilizer})");
}
deadeggs.Add(egg);
}