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
|
// comp is used for Hydrogen's RJW Muscle Injury
|
||||||
float totalleak = volume;
|
float totalleak = volume;
|
||||||
float decayPerInterval = 1 - Mathf.Pow(1 - Configurations.CumDecayRatio, (float)comp.TickInterval / GenDate.TicksPerHour);
|
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);
|
volume *= Math.Max(0, 1 - decayPerInterval * (1 - DecayResist) * leakfactor);
|
||||||
fertility *= Math.Max(0, 1 - (fertilityDecayPerInterval * (1 - DecayResist) + antisperm));
|
fertility *= Math.Max(0, 1 - (fertilityDecayPerInterval * (1 - DecayResist) + antisperm));
|
||||||
CutMinor();
|
CutMinor();
|
||||||
|
|
|
@ -152,7 +152,7 @@ namespace RJW_Menstruation
|
||||||
public bool ShouldSimulate()
|
public bool ShouldSimulate()
|
||||||
{
|
{
|
||||||
if (!Configurations.EnableAnimalCycle && Pawn.IsAnimal()) return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -686,7 +686,7 @@ namespace RJW_Menstruation
|
||||||
public bool ShouldSimulate()
|
public bool ShouldSimulate()
|
||||||
{
|
{
|
||||||
if (!Configurations.EnableAnimalCycle && Pawn.IsAnimal()) return false;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ namespace RJW_Menstruation
|
||||||
|
|
||||||
PregnancyUtility.ApplyBirthOutcome(thisOutcome, quality, ritual, genes, geneticMother, birtherThing, thisFather, doctor, lordJobRitual, assignments);
|
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
|
// 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))
|
if (xxx.is_human(baby))
|
||||||
mother.records.Increment(xxx.CountOfBirthHuman);
|
mother.records.Increment(xxx.CountOfBirthHuman);
|
||||||
else if (xxx.is_animal(baby))
|
else if (xxx.is_animal(baby))
|
||||||
|
@ -266,7 +266,7 @@ namespace RJW_Menstruation
|
||||||
baby.relations.ClearAllRelations();
|
baby.relations.ClearAllRelations();
|
||||||
|
|
||||||
PregnancyUtility.ApplyBirthOutcome(outcome, quality, ritual, genes, geneticMother, birtherThing, thisFather, doctor, lordJobRitual, assignments);
|
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))
|
if (xxx.is_human(baby))
|
||||||
mother.records.Increment(xxx.CountOfBirthHuman);
|
mother.records.Increment(xxx.CountOfBirthHuman);
|
||||||
else if (xxx.is_animal(baby))
|
else if (xxx.is_animal(baby))
|
||||||
|
|
|
@ -117,7 +117,7 @@ namespace RJW_Menstruation
|
||||||
{
|
{
|
||||||
public static void Postfix(Thing birtherThing)
|
public static void Postfix(Thing birtherThing)
|
||||||
{
|
{
|
||||||
if (birtherThing is Pawn pawn && !pawn.Dead)
|
if (birtherThing is Pawn pawn && !pawn.health.Dead)
|
||||||
pawn.GetBreastComp()?.GaveBirth();
|
pawn.GetBreastComp()?.GaveBirth();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue