Shift breeder from implant chance to ovulation chane. It would overflow back down anyways.
This commit is contained in:
parent
2798d923b1
commit
65b69eaf76
|
@ -306,7 +306,8 @@ namespace RJW_Menstruation
|
||||||
if (factor <= 0.0f) return 0.0f; // Too young or too old
|
if (factor <= 0.0f) return 0.0f; // Too young or too old
|
||||||
}
|
}
|
||||||
else part.TransformValue(StatRequest.For(Pawn), ref ovulationChance);
|
else part.TransformValue(StatRequest.For(Pawn), ref ovulationChance);
|
||||||
}
|
}
|
||||||
|
if (Pawn.Has(Quirk.Breeder)) ovulationChance *= 10.0f;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
calculatingOvulationChance = true;
|
calculatingOvulationChance = true;
|
||||||
|
@ -322,18 +323,19 @@ namespace RJW_Menstruation
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
float factor = 1.0f;
|
float factor = 1.0f;
|
||||||
if (Pawn.Has(Quirk.Breeder)) factor = 10.0f;
|
|
||||||
|
|
||||||
if (ModsConfig.BiotechActive && xxx.is_human(Pawn))
|
if (ModsConfig.BiotechActive && xxx.is_human(Pawn))
|
||||||
{
|
{
|
||||||
// Implant factor will be based solely on pawn age, plus any rollover from ovulation chance
|
// Implant factor will be based solely on pawn age, plus any rollover from ovulation chance
|
||||||
StatPart_FertilityByGenderAge fertilityStatPart = StatDefOf.Fertility.GetStatPart<StatPart_FertilityByGenderAge>();
|
StatPart_FertilityByGenderAge fertilityStatPart = StatDefOf.Fertility.GetStatPart<StatPart_FertilityByGenderAge>();
|
||||||
fertilityStatPart?.TransformValue(StatRequest.For(Pawn), ref factor);
|
fertilityStatPart?.TransformValue(StatRequest.For(Pawn), ref factor);
|
||||||
float ovulationOverflow = OvulationChance;
|
float ovulationOverflow = OvulationChance;
|
||||||
if (ovulationOverflow > 1.0f) factor *= ovulationOverflow;
|
if (ovulationOverflow > 1.0f) factor *= ovulationOverflow;
|
||||||
return Props.baseImplantationChanceFactor * FertilityModifier * factor;
|
return Props.baseImplantationChanceFactor * FertilityModifier * factor;
|
||||||
}
|
}
|
||||||
else return Pawn.health.capacities.GetLevel(xxx.reproduction) * Props.baseImplantationChanceFactor * FertilityModifier * factor;
|
else
|
||||||
|
{
|
||||||
|
return Pawn.health.capacities.GetLevel(xxx.reproduction) * Props.baseImplantationChanceFactor * FertilityModifier * factor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue