mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Compare commits
No commits in common. "e78a86599dbbe84947b027364fd6fe335ef0b778" and "8718cca2993391b7c1d1436de8da438f54c09e91" have entirely different histories.
e78a86599d
...
8718cca299
6 changed files with 6 additions and 6 deletions
Binary file not shown.
|
@ -205,7 +205,7 @@ namespace RJW_Menstruation
|
|||
// comp is used for Hydrogen's RJW Muscle Injury
|
||||
float totalleak = volume;
|
||||
float decayPerInterval = 1 - Mathf.Pow(1 - Configurations.CumDecayRatio, (float)comp.TickInterval / GenDate.TicksPerHour);
|
||||
float fertilityDecayPerInterval = 1 - Mathf.Pow(1 - Configurations.CumFertilityDecayRatio, (float)comp.TickInterval / GenDate.TicksPerHour);
|
||||
float fertilityDecayPerInterval = 1 - Mathf.Pow(Configurations.CumFertilityDecayRatio, (float)comp.TickInterval / GenDate.TicksPerHour);
|
||||
volume *= Math.Max(0, 1 - decayPerInterval * (1 - DecayResist) * leakfactor);
|
||||
fertility *= Math.Max(0, 1 - (fertilityDecayPerInterval * (1 - DecayResist) + antisperm));
|
||||
CutMinor();
|
||||
|
|
|
@ -152,7 +152,7 @@ namespace RJW_Menstruation
|
|||
public bool ShouldSimulate()
|
||||
{
|
||||
if (!Configurations.EnableAnimalCycle && Pawn.IsAnimal()) return false;
|
||||
if (Pawn.SpawnedOrAnyParentSpawned || Pawn.IsCaravanMember() || PawnUtility.IsTravelingInTransportPodWorldObject(Pawn)) return true;
|
||||
if (Pawn.Spawned || Pawn.IsCaravanMember() || PawnUtility.IsTravelingInTransportPodWorldObject(Pawn)) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -686,7 +686,7 @@ namespace RJW_Menstruation
|
|||
public bool ShouldSimulate()
|
||||
{
|
||||
if (!Configurations.EnableAnimalCycle && Pawn.IsAnimal()) return false;
|
||||
if (Pawn.SpawnedOrAnyParentSpawned || Pawn.IsCaravanMember() || PawnUtility.IsTravelingInTransportPodWorldObject(Pawn)) return true;
|
||||
if (Pawn.Spawned || Pawn.IsCaravanMember() || PawnUtility.IsTravelingInTransportPodWorldObject(Pawn)) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -213,7 +213,7 @@ namespace RJW_Menstruation
|
|||
|
||||
PregnancyUtility.ApplyBirthOutcome(thisOutcome, quality, ritual, genes, geneticMother, birtherThing, thisFather, doctor, lordJobRitual, assignments);
|
||||
// No more babies if mom dies halfway through. Unrealistic maybe, but saves a lot of headache in ApplyBirthOutcome
|
||||
if (mother.Dead) break;
|
||||
if (mother.health.Dead) break;
|
||||
if (xxx.is_human(baby))
|
||||
mother.records.Increment(xxx.CountOfBirthHuman);
|
||||
else if (xxx.is_animal(baby))
|
||||
|
@ -266,7 +266,7 @@ namespace RJW_Menstruation
|
|||
baby.relations.ClearAllRelations();
|
||||
|
||||
PregnancyUtility.ApplyBirthOutcome(outcome, quality, ritual, genes, geneticMother, birtherThing, thisFather, doctor, lordJobRitual, assignments);
|
||||
if (mother.Dead) break;
|
||||
if (mother.health.Dead) break;
|
||||
if (xxx.is_human(baby))
|
||||
mother.records.Increment(xxx.CountOfBirthHuman);
|
||||
else if (xxx.is_animal(baby))
|
||||
|
|
|
@ -117,7 +117,7 @@ namespace RJW_Menstruation
|
|||
{
|
||||
public static void Postfix(Thing birtherThing)
|
||||
{
|
||||
if (birtherThing is Pawn pawn && !pawn.Dead)
|
||||
if (birtherThing is Pawn pawn && !pawn.health.Dead)
|
||||
pawn.GetBreastComp()?.GaveBirth();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue