From 8f678818a03ae02370cb2d548a5aa400b36b947f Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Tue, 29 Jun 2021 20:45:51 -0400
Subject: [PATCH] intro

---
 .../RE/incest/reDevotedMotherDaughter.js      | 53 ++++++++++++++++++-
 1 file changed, 52 insertions(+), 1 deletion(-)

diff --git a/src/events/RE/incest/reDevotedMotherDaughter.js b/src/events/RE/incest/reDevotedMotherDaughter.js
index c7c25eef246..84e90b17887 100644
--- a/src/events/RE/incest/reDevotedMotherDaughter.js
+++ b/src/events/RE/incest/reDevotedMotherDaughter.js
@@ -1,4 +1,55 @@
-/*		:: RE devoted mother daughter [nobr]
+App.Events.REDevotedMotherDaughter = class REDevotedMotherDaughter extends App.Events.BaseEvent {
+	eventPrerequisites() {
+		return [
+			() => V.seeIncest === 1
+		];
+	}
+
+	actorPrerequisites() {
+		return [[
+			(s) => s.daughters > 0,
+			(s) => s.devotion > 50,
+			(s) => s.anus !== 0,
+			canWalk,
+			(s) => {
+				for (const daughter of V.slaves) {
+					if (isParentP(daughter, s)) {
+						if ((daughter.devotion > 50) && (daughter.anus !== 0) && canWalk(daughter)) {
+							return true;
+						}
+					}
+				}
+			}
+		]];
+	}
+
+	execute(node) {
+		V.nextButton = "Continue";
+		V.nextLink = "RIE Eligibility Check";
+		let r = [];
+		const mommy = getSlave(this.actors[0]);
+		const candidates = [];
+
+		for (const daughter of V.slaves) {
+			if (isParentP(daughter, mommy)) {
+				if ((daughter.devotion > 50) && (daughter.anus !== 0) && canWalk(daughter)) {
+					candidates.push(daughter);
+				}
+			}
+		}
+
+		const daughter = candidates.pluck();
+		const {
+			he, him, his, mother
+		} = getPronouns(mommy);
+
+		const {
+			his2, daughter2
+		} = getPronouns(daughter).appendSuffix("2");
+
+		App.Events.drawEventArt(node, [mommy, daughter], "no clothing");
+		
+		:: RE devoted mother daughter [nobr]
 
 		V.nextButton = "Continue", V.nextLink = "RIE Eligibility Check";
 
-- 
GitLab