Have ThoughtCumInside test for the existence of a memory thought handler instead of just being human

This commit is contained in:
lutepickle 2024-05-08 14:14:19 -07:00
parent c402f871b6
commit b70b4a6c90
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -1768,10 +1768,10 @@ namespace RJW_Menstruation
protected virtual void ThoughtCumInside(Pawn cummer)
{
if (!xxx.is_human(Pawn) || !xxx.is_human(cummer)) return;
MemoryThoughtHandler cummerMemories = cummer?.needs?.mood?.thoughts.memories;
MemoryThoughtHandler pawnMemories = Pawn?.needs?.mood?.thoughts.memories;
MemoryThoughtHandler cummerMemories = cummer.needs.mood.thoughts.memories;
MemoryThoughtHandler pawnMemories = Pawn.needs.mood.thoughts.memories;
if (cummerMemories == null || pawnMemories == null) return;
if (cummer.IsProPregnancy(out Precept preceptm) || (cummer.IsTeratophile() != (Pawn.GetStatValue(StatDefOf.PawnBeauty) >= 0)))
{