Have sexperience-ideo pregnancy precepts count for mood effects
This commit is contained in:
parent
411fd16fe9
commit
dd8ae8a09b
Binary file not shown.
|
@ -89,7 +89,7 @@ namespace RJW_Menstruation
|
||||||
else m.moodPowerFactor = 0.3f;
|
else m.moodPowerFactor = 0.3f;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (pawn.HasQuirk(QuirkUtility.Quirks.Breeder)) pawn.needs.mood.thoughts.memories.TryGainMemoryFast(VariousDefOf.HateTookContraceptivePill);
|
if (pawn.WantsToGetPregnant()) pawn.needs.mood.thoughts.memories.TryGainMemoryFast(VariousDefOf.HateTookContraceptivePill);
|
||||||
else pawn.needs.mood.thoughts.memories.TryGainMemoryFast(VariousDefOf.TookContraceptivePill);
|
else pawn.needs.mood.thoughts.memories.TryGainMemoryFast(VariousDefOf.TookContraceptivePill);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1780,7 +1780,7 @@ namespace RJW_Menstruation
|
||||||
|
|
||||||
if (IsDangerDay)
|
if (IsDangerDay)
|
||||||
{
|
{
|
||||||
if (Pawn.HasQuirk(QuirkUtility.Quirks.Breeder) || Pawn.HasQuirk(QuirkUtility.Quirks.ImpregnationFetish))
|
if (Pawn.WantsToGetPregnant())
|
||||||
{
|
{
|
||||||
Pawn.needs.mood.thoughts.memories.TryGainMemory(VariousDefOf.CameInsideFFetish, cummer);
|
Pawn.needs.mood.thoughts.memories.TryGainMemory(VariousDefOf.CameInsideFFetish, cummer);
|
||||||
}
|
}
|
||||||
|
@ -1803,7 +1803,7 @@ namespace RJW_Menstruation
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (Pawn.HasQuirk(QuirkUtility.Quirks.Breeder) || Pawn.HasQuirk(QuirkUtility.Quirks.ImpregnationFetish))
|
if (Pawn.WantsToGetPregnant())
|
||||||
{
|
{
|
||||||
Pawn.needs.mood.thoughts.memories.TryGainMemory(VariousDefOf.CameInsideFFetishSafe, cummer);
|
Pawn.needs.mood.thoughts.memories.TryGainMemory(VariousDefOf.CameInsideFFetishSafe, cummer);
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,6 +401,22 @@ namespace RJW_Menstruation
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool WantsToGetPregnant(this Pawn pawn)
|
||||||
|
{
|
||||||
|
if (pawn.HasQuirk(QuirkUtility.Quirks.Breeder) ||
|
||||||
|
pawn.HasQuirk(QuirkUtility.Quirks.ImpregnationFetish))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
Ideo ideo = pawn.Ideo;
|
||||||
|
if (ideo == null || VariousDefOf.Pregnancy_Elevated == null) return false;
|
||||||
|
if (ideo.HasPrecept(VariousDefOf.Pregnancy_Elevated) ||
|
||||||
|
ideo.HasPrecept(VariousDefOf.Pregnancy_Holy) ||
|
||||||
|
ideo.HasPrecept(VariousDefOf.Pregnancy_Required))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
public static float DamagePants(this Pawn pawn, float fluidAmount)
|
public static float DamagePants(this Pawn pawn, float fluidAmount)
|
||||||
{
|
{
|
||||||
if (pawn.apparel == null) return 0;
|
if (pawn.apparel == null) return 0;
|
||||||
|
|
|
@ -23,11 +23,11 @@ namespace RJW_Menstruation
|
||||||
{
|
{
|
||||||
if (is_discovered ||
|
if (is_discovered ||
|
||||||
!xxx.is_human(pawn) ||
|
!xxx.is_human(pawn) ||
|
||||||
pawn.HasQuirk(QuirkUtility.Quirks.Breeder) ||
|
pawn.HasQuirk(QuirkUtility.Quirks.Breeder) || (pawn.Ideo?.HasPrecept(VariousDefOf.Pregnancy_Required) ?? false) ||
|
||||||
(pawn.relations?.DirectRelations?.Find(x => x.def.Equals(PawnRelationDefOf.Spouse) ||
|
(pawn.relations?.DirectRelations?.Find(x => x.def.Equals(PawnRelationDefOf.Spouse) ||
|
||||||
x.def.Equals(PawnRelationDefOf.Fiance))) != null)
|
x.def.Equals(PawnRelationDefOf.Fiance))) != null)
|
||||||
return;
|
return;
|
||||||
if (pawn.HasQuirk(QuirkUtility.Quirks.ImpregnationFetish) || pawn.relations?.DirectRelations?.Find(x => x.def.Equals(PawnRelationDefOf.Lover)) != null)
|
if (pawn.WantsToGetPregnant() || pawn.relations?.DirectRelations?.Find(x => x.def.Equals(PawnRelationDefOf.Lover)) != null)
|
||||||
{
|
{
|
||||||
pawn.needs.mood.thoughts.memories.TryGainMemory(VariousDefOf.UnwantedPregnancyMild);
|
pawn.needs.mood.thoughts.memories.TryGainMemory(VariousDefOf.UnwantedPregnancyMild);
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,5 +167,10 @@ namespace RJW_Menstruation
|
||||||
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("LactateSelf_MC");
|
||||||
|
|
||||||
|
// Defs from Sexperience Ideology
|
||||||
|
public static readonly PreceptDef Pregnancy_Elevated = DefDatabase<PreceptDef>.GetNamedSilentFail("Pregnancy_Elevated");
|
||||||
|
public static readonly PreceptDef Pregnancy_Holy = DefDatabase<PreceptDef>.GetNamedSilentFail("Pregnancy_Holy");
|
||||||
|
public static readonly PreceptDef Pregnancy_Required = DefDatabase<PreceptDef>.GetNamedSilentFail("Pregnancy_Required");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@ Version 1.0.9.0
|
||||||
- Fix errors when opening the womb dialog of some low fertility pawns.
|
- Fix errors when opening the womb dialog of some low fertility pawns.
|
||||||
- Updated Traditional Chinese translation by Hydrogen.
|
- Updated Traditional Chinese translation by Hydrogen.
|
||||||
- New options to update wombs more or less often, defaulting to every hour.
|
- New options to update wombs more or less often, defaulting to every hour.
|
||||||
|
- When using the sexperience-ideology mod, pawns with pro-pregnancy precepts will have thoughts more agreeable with potential pregnancies.
|
||||||
- More generous egg allocation for newly spawned periodic ovulators.
|
- More generous egg allocation for newly spawned periodic ovulators.
|
||||||
- Menstruation-related genes will now stay on females during initial pawn setup.
|
- Menstruation-related genes will now stay on females during initial pawn setup.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue