Show the chance of implanation in the debug log on failure

This commit is contained in:
lutepickle 2023-04-22 12:12:53 -07:00
parent bf0334d16e
commit 0ff5fa96d0
3 changed files with 6 additions and 3 deletions

Binary file not shown.

View File

@ -1452,9 +1452,12 @@ namespace RJW_Menstruation
}
}
else
{
float implantChance = Configurations.ImplantationChance * ImplantChance * InterspeciesImplantFactor(egg.fertilizer);
if (Configurations.Debug) Log.Message($"Fertilized egg of {Pawn} failed to implant (chance {implantChance.ToStringPercent()}, father {egg.fertilizer})");
{
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})");
}
deadeggs.Add(egg);
}
}