This commit is contained in:
c0ffee12 2021-07-25 21:21:05 -07:00
parent 91d05d0e1e
commit edada8ff48
4 changed files with 4 additions and 4 deletions

Binary file not shown.

View file

@ -2,7 +2,7 @@
<Defs>
<!--Issue-->
<!--
<IssueDef>
<defName>Lactation</defName>
<label>lactation</label>
@ -16,7 +16,6 @@
<description>Milk from breasts is healthy and delicious. It should be produced and consumed by everyone on a regular basis.</description>
<comps>
<li Class="PreceptComp_SituationalThought">
<thought>Lactating_Essential</thought>
<description>Pawns with sizeable breasts should be producing milk</description>
@ -44,5 +43,5 @@
</li>
</stages>
</ThoughtDef>
-->
</Defs>

View file

@ -18,7 +18,8 @@ namespace C0ffee_s_RJW_Ideology_Addons
public static void Prefix(JobDriver_SexBaseInitiator __instance)
{
if (__instance is JobDriver_Masturbate || __instance.Partner == null) return;
HistoryEventDef def = __instance.pawn.relations.DirectRelationExists(PawnRelationDefOf.Spouse, __instance.Partner) ? HistoryEventDefOf.GotLovin_Spouse : HistoryEventDefOf.GotLovin_NonSpouse;
if (!(IdeoUtility.DoerWillingToDo(HistoryEventDefOf.SharedBed_NonSpouse, __instance.Partner) && (__instance.Partner.IsSlaveOfColony || __instance.Partner.IsPrisonerOfColony))) //ensure raped pawns don't enjoy