mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
More 1.5 fixes
This commit is contained in:
parent
48f3a55691
commit
d5c38a2a58
5 changed files with 5 additions and 4 deletions
Binary file not shown.
|
@ -227,7 +227,7 @@ namespace RJW_Menstruation
|
||||||
if (notcum || DNA?.ingestionOutcomeDoers == null || volume < 1.0f) return;
|
if (notcum || DNA?.ingestionOutcomeDoers == null || volume < 1.0f) return;
|
||||||
|
|
||||||
foreach (IngestionOutcomeDoer doer in DNA.ingestionOutcomeDoers)
|
foreach (IngestionOutcomeDoer doer in DNA.ingestionOutcomeDoers)
|
||||||
doer.DoIngestionOutcome(pawn, CumThing);
|
doer.DoIngestionOutcome(pawn, CumThing, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void CutMinor()
|
protected void CutMinor()
|
||||||
|
|
|
@ -76,7 +76,7 @@ namespace RJW_Menstruation
|
||||||
HediffSet hediffs = target.health.hediffSet;
|
HediffSet hediffs = target.health.hediffSet;
|
||||||
float breathingEffect = PawnCapacityUtility.CalculateCapacityLevel(hediffs, PawnCapacityDefOf.Breathing);
|
float breathingEffect = PawnCapacityUtility.CalculateCapacityLevel(hediffs, PawnCapacityDefOf.Breathing);
|
||||||
float noseEffect = 1.0f;
|
float noseEffect = 1.0f;
|
||||||
List<BodyPartRecord> noses = body.GetPartsWithDef(BodyPartDefOf.Nose);
|
List<BodyPartRecord> noses = body.GetPartsWithDef(VariousDefOf.Nose);
|
||||||
if (noses.Any()) // if the body doesn't have a nose but still breathes, then let it be affected
|
if (noses.Any()) // if the body doesn't have a nose but still breathes, then let it be affected
|
||||||
noseEffect = noses.Average(nose => PawnCapacityUtility.CalculatePartEfficiency(hediffs, nose));
|
noseEffect = noses.Average(nose => PawnCapacityUtility.CalculatePartEfficiency(hediffs, nose));
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ namespace RJW_Menstruation
|
||||||
if (ModsConfig.BiotechActive)
|
if (ModsConfig.BiotechActive)
|
||||||
{
|
{
|
||||||
// Ugly, but it'll have to do
|
// Ugly, but it'll have to do
|
||||||
OutcomeChance bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.BestOutcome;
|
RitualOutcomePossibility bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.BestOutcome;
|
||||||
|
|
||||||
string label = bestOutcome.label;
|
string label = bestOutcome.label;
|
||||||
string description = bestOutcome.description.Formatted(mother.Named("MOTHER"));
|
string description = bestOutcome.description.Formatted(mother.Named("MOTHER"));
|
||||||
|
@ -332,7 +332,7 @@ namespace RJW_Menstruation
|
||||||
PregnancyCommon.SetupBabyXenotype(mother, father, baby);
|
PregnancyCommon.SetupBabyXenotype(mother, father, baby);
|
||||||
// HAR and some xenotype mods don't randomize graphics until it's rendered
|
// HAR and some xenotype mods don't randomize graphics until it's rendered
|
||||||
// So poke it early
|
// So poke it early
|
||||||
baby.Drawer.renderer.graphics.ResolveAllGraphics();
|
// baby.Drawer.renderer.graphics.ResolveAllGraphics();
|
||||||
if (division > 1)
|
if (division > 1)
|
||||||
{
|
{
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
|
|
|
@ -45,6 +45,7 @@ namespace RJW_Menstruation
|
||||||
public static readonly RecordDef AmountofCreampied = DefDatabase<RecordDef>.GetNamed("AmountofCreampied");
|
public static readonly RecordDef AmountofCreampied = DefDatabase<RecordDef>.GetNamed("AmountofCreampied");
|
||||||
public static readonly RecordDef AmountofFertilizedEggs = DefDatabase<RecordDef>.GetNamed("AmountofFertilizedEggs");
|
public static readonly RecordDef AmountofFertilizedEggs = DefDatabase<RecordDef>.GetNamed("AmountofFertilizedEggs");
|
||||||
public static readonly TaleDef TaleCameInside = DefDatabase<TaleDef>.GetNamed("CameInside");
|
public static readonly TaleDef TaleCameInside = DefDatabase<TaleDef>.GetNamed("CameInside");
|
||||||
|
public static readonly BodyPartDef Nose = DefDatabase<BodyPartDef>.GetNamed("Nose");
|
||||||
|
|
||||||
private static List<ThingDef> allraces = null;
|
private static List<ThingDef> allraces = null;
|
||||||
private static List<PawnKindDef> allkinds = null;
|
private static List<PawnKindDef> allkinds = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue