From bcc6ce48628a70156a32eabb6d4fa157698c7251 Mon Sep 17 00:00:00 2001
From: Pregmodder <pregmodder@gmail.com>
Date: Sat, 2 Feb 2019 01:02:45 -0500
Subject: [PATCH] Enabled well hung genetic quirk

---
 src/js/generateGenetics.js        | 29 +++++++++++++++++++++++++++++
 src/utility/descriptionWidgets.tw |  9 +++++++++
 2 files changed, 38 insertions(+)

diff --git a/src/js/generateGenetics.js b/src/js/generateGenetics.js
index 98ab81f15c7..79b546d3041 100644
--- a/src/js/generateGenetics.js
+++ b/src/js/generateGenetics.js
@@ -593,6 +593,35 @@ window.generateGenetics = (function() {
 			}
 		}
 
+		// well hung
+		if (father !== 0) {
+			if (mother.geneticQuirks.wellHung + father.geneticQuirks.wellHung >= 3) {
+				if (sex === "XY") {
+					quirks.wellHung = 2;
+				} else {
+					quirks.wellHung = 1;
+				}
+			} else if (mother.geneticQuirks.wellHung + father.geneticQuirks.wellHung >= 1) {
+				chance = jsRandom(0, 1000);
+				if (chance > 750) {
+					quirks.wellHung = 1;
+				}
+			}
+		} else if (mother.geneticQuirks.wellHung === 2) {
+			chance = jsRandom(0, 1000);
+			if (sex === "XY") {
+				if (chance > 900) {
+					quirks.wellHung = 2;
+				} else if (chance > 200) {
+					quirks.wellHung = 1;
+				}
+			} else {
+				if (chance > 500) {
+					quirks.wellHung = 1;
+				}
+			}
+		}
+
 		return clone(quirks);
 	}
 
diff --git a/src/utility/descriptionWidgets.tw b/src/utility/descriptionWidgets.tw
index 3afa05280e2..5d22b2e7788 100644
--- a/src/utility/descriptionWidgets.tw
+++ b/src/utility/descriptionWidgets.tw
@@ -280,6 +280,15 @@
 			fertile.
 		<</if>>
 	<</if>>
+	<<if $activeSlave.geneticQuirks.wellHung == 2>>
+		<<if $activeSlave.physicalAge <= 16 && $activeSlave.hormoneBalance < 100 && $activeSlave.dick > 0>>
+			$He is likely to experience an inordinate amount of penile growth during $his physical development.
+		<<elseif $activeSlave.dick > 0>>
+			$He is predisposed to having an enormous dick, though it is unlikely to naturally grow any larger than it currently is.
+		<<else>>
+			$He is predisposed to having an enormous dick, or would, if $he had one.
+		<</if>>
+	<</if>>
 <</if>>
 
 <</widget>>
-- 
GitLab