From a3f95a523e8472e81ecaca2c3663fea651931554 Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Sun, 9 Aug 2020 16:30:23 -0400
Subject: [PATCH] Reworked Matron education effects to cause a malus if Matron
 is stupid and uneducated

---
 src/endWeek/reports/childrenReport.js | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/endWeek/reports/childrenReport.js b/src/endWeek/reports/childrenReport.js
index f25cf43352b..5090f870b49 100644
--- a/src/endWeek/reports/childrenReport.js
+++ b/src/endWeek/reports/childrenReport.js
@@ -92,9 +92,15 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 
 			return `Though ${Matron.slaveName} has had little to no formal education, ${his} natural brilliance allows ${him} to teach ${theChildren} quite effectively, and so ${CL > 1 ? `they grow` : `${child.slaveName} grows`} a bit smarter. `;
 		} else {
-			child.intelligenceImplant++;
+			const
+				totalSpan = App.UI.DOM.makeElement("span", `${Matron.slaveName} isn't the brightest and not well educated, `),
+				damageSpan = App.UI.DOM.makeElement("span", `damaging the amount of real education ${theChildren} receive. `, "red");
+
+			child.intelligenceImplant--;
 
-			return `${Matron.slaveName} isn't the brightest and is only somewhat effective at teaching, so ${theChildren} ${CL > 1 ? `grow` : `grows`} just a little bit smarter. `;
+			totalSpan.appendChild(damageSpan);
+
+			return totalSpan;
 		}
 	}
 
@@ -128,6 +134,7 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 	}
 
 	function nannyEducationEffects(child) {
+		// TODO: redo this entire section
 		// TODO: expand this
 		const
 			firstNanny = nannies[0],
@@ -289,8 +296,8 @@ App.Facilities.Nursery.childrenReport = function childrenReport() {
 				becomeFriends = () => `${child.slaveName} and ${target.slaveName} have realized that they have more in common that they originally thought, and have become friends. `,
 				becomeRivals = () => `${child.slaveName} and ${target.slaveName} have more differences between them than they could put aside and have become rivals. `,
 				haveSameFetish = () => child.fetish === target.fetish && child.fetish !== "none",
-				haveSameBehavioralQuirk = () => child.behavioralQuirk === target.behavioralQuirk && child.behavioralQuirk !== "none",
-				haveSameSexualQuirk = () => child.sexualQuirk === target.sexualQuirk && child.sexualQuirk !== "none",
+				haveSameBehavioralQuirk = () => child.behavioralQuirk && child.behavioralQuirk === target.behavioralQuirk && child.behavioralQuirk !== "none",
+				haveSameSexualQuirk = () => child.sexualQuirk && child.sexualQuirk === target.sexualQuirk && child.sexualQuirk !== "none",
 
 				div = document.createElement("div"),
 
-- 
GitLab