mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Compare commits
9 commits
546d412d3c
...
7a92cce993
Author | SHA1 | Date | |
---|---|---|---|
|
7a92cce993 | ||
|
4be4d881d5 | ||
|
cdfe9b44b8 | ||
|
b21fc85a29 | ||
|
48f020d832 | ||
|
23ae342722 | ||
|
509eeabddc | ||
|
6fabfd6aaf | ||
|
ebbbf8ee7f |
5 changed files with 12 additions and 2 deletions
|
@ -276,7 +276,10 @@ namespace RJW_Menstruation
|
||||||
float res = 0;
|
float res = 0;
|
||||||
if (VariousDefOf.Hediff_Heavy_Lactating_Permanent != null)
|
if (VariousDefOf.Hediff_Heavy_Lactating_Permanent != null)
|
||||||
{
|
{
|
||||||
if (pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Heavy_Lactating_Permanent)) milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("hypermilkable"));
|
if (pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Heavy_Lactating_Permanent)
|
||||||
|
|| pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Lactating_Permanent)
|
||||||
|
|| pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Lactating_Natural)
|
||||||
|
|| pawn.health.hediffSet.HasHediff(VariousDefOf.Hediff_Lactating_Drug)) milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("milkablehuman"));
|
||||||
else milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("milkable"));
|
else milkcomp = pawn.AllComps.FirstOrDefault(x => x.GetType().ToString().ToLower().Contains("milkable"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -158,7 +158,7 @@ namespace RJW_Menstruation
|
||||||
public static readonly HediffDef Hediff_Lactating_Natural = DefDatabase<HediffDef>.GetNamedSilentFail("Lactating_Natural");
|
public static readonly HediffDef Hediff_Lactating_Natural = DefDatabase<HediffDef>.GetNamedSilentFail("Lactating_Natural");
|
||||||
public static readonly HediffDef Hediff_Lactating_Permanent = DefDatabase<HediffDef>.GetNamedSilentFail("Lactating_Permanent");
|
public static readonly HediffDef Hediff_Lactating_Permanent = DefDatabase<HediffDef>.GetNamedSilentFail("Lactating_Permanent");
|
||||||
public static readonly HediffDef Hediff_Heavy_Lactating_Permanent = DefDatabase<HediffDef>.GetNamedSilentFail("Heavy_Lactating_Permanent");
|
public static readonly HediffDef Hediff_Heavy_Lactating_Permanent = DefDatabase<HediffDef>.GetNamedSilentFail("Heavy_Lactating_Permanent");
|
||||||
public static readonly JobDef Job_LactateSelf_MC = DefDatabase<JobDef>.GetNamedSilentFail("LactateSelf_MC");
|
public static readonly JobDef Job_LactateSelf_MC = DefDatabase<JobDef>.GetNamedSilentFail("MilkSelf");
|
||||||
|
|
||||||
// Defs from Sexperience Ideology
|
// Defs from Sexperience Ideology
|
||||||
public static readonly PreceptDef Pregnancy_Elevated = DefDatabase<PreceptDef>.GetNamedSilentFail("Pregnancy_Elevated");
|
public static readonly PreceptDef Pregnancy_Elevated = DefDatabase<PreceptDef>.GetNamedSilentFail("Pregnancy_Elevated");
|
||||||
|
|
Binary file not shown.
|
@ -637,7 +637,11 @@ namespace RJW_Menstruation
|
||||||
Scribe_Values.Look(ref DoCleanWomb, "DoCleanWomb", false);
|
Scribe_Values.Look(ref DoCleanWomb, "DoCleanWomb", false);
|
||||||
Scribe_References.Look(ref pregnancy, "pregnancy");
|
Scribe_References.Look(ref pregnancy, "pregnancy");
|
||||||
if (Scribe.mode == LoadSaveMode.PostLoadInit)
|
if (Scribe.mode == LoadSaveMode.PostLoadInit)
|
||||||
|
{
|
||||||
Initialize();
|
Initialize();
|
||||||
|
if (pregnancy is HediffWithParents vanillaPreg && vanillaPreg.Mother == vanillaPreg.Father) // Fix mother == father issue
|
||||||
|
vanillaPreg.SetParents(vanillaPreg.Mother, null, vanillaPreg.geneSet);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
Version 1.5.0.2
|
||||||
|
- Fix error during labor if the mother is also the father.
|
||||||
|
|
||||||
Version 1.5.0.1
|
Version 1.5.0.1
|
||||||
- Fix error getting blood color of pawns without genes.
|
- Fix error getting blood color of pawns without genes.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue