Skip to content
Snippets Groups Projects
Commit 70c1d176 authored by a flock of birds's avatar a flock of birds
Browse files

Fixed error on mechrape, improved pregnancy approach interaction selection logic

parent 13b8f612
No related branches found
No related tags found
No related merge requests found
......@@ -24,15 +24,20 @@ namespace rjw.Modules.Interactions.Rules.PartKindUsageRules.Implementation
public IEnumerable<Weighted<LewdablePartKind>> ModifiersForEither(InteractionPawn OwO, InteractionPawn UwU)
{
float weight = OwO.Pawn.relations.GetPregnancyApproachForPartner(UwU.Pawn).GetPregnancyChanceFactor();
if (UwU.Parts.Penises.Any())
if (OwO.Pawn.relations == null || UwU.Pawn.relations == null)
{
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Vagina);
yield break;
}
if (UwU.Parts.Vaginas.Any())
float weight = OwO.Pawn.relations.GetPregnancyApproachForPartner(UwU.Pawn).GetPregnancyChanceFactor();
if (OwO.Parts.Vaginas.Any() && UwU.Parts.Penises.Any())
{
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Penis);
}
if (OwO.Parts.Penises.Any() && UwU.Parts.Vaginas.Any())
{
yield return new Weighted<LewdablePartKind>(weight, LewdablePartKind.Vagina);
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment