From af8078986be7b18c1501d26aa6497e719ae5a1cc Mon Sep 17 00:00:00 2001
From: lowercase-donkey <lowercasedonkey@gmail.com>
Date: Fri, 29 Mar 2019 22:05:39 -0400
Subject: [PATCH] expanded gender of relativeTerm

---
 src/js/extendedFamilyModeJS.js | 36 ++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)

diff --git a/src/js/extendedFamilyModeJS.js b/src/js/extendedFamilyModeJS.js
index 2b3f362a1d8..f71b9314ccb 100644
--- a/src/js/extendedFamilyModeJS.js
+++ b/src/js/extendedFamilyModeJS.js
@@ -288,21 +288,45 @@ window.totalPlayerRelatives = function(pc) {
 window.relativeTerm = /** @param {App.Entity.SlaveState} slave1 @param {App.Entity.SlaveState} slave2 */
 	function (slave1, slave2) {
 		if (slave2.mother === slave1.ID || slave2.father === slave1.ID) {
-			return "daughter";
+			if (slave2.genes === "XY" && State.variables.seeDick != 0) {
+				return "son";
+			} else {
+				return "daughter";
+			}
 		} else if (slave1.mother === slave2.ID) {
 			return "mother";
 		} else if (slave1.father === slave2.ID) {
 			return "father";
 		} else if (areSisters(slave2, slave1) === 1) {
-			return "twin";
+			if (slave2.genes === "XY" && State.variables.seeDick != 0) {
+				return "twin brother";
+			} else {
+				return "twin sister";
+			}
 		} else if (areSisters(slave2, slave1) === 2) {
-			return "sister";
+			if (slave2.genes === "XY" && State.variables.seeDick != 0) {
+				return "brother";
+			} else {
+				return "sister";
+			}
 		} else if (areSisters(slave2, slave1) === 3) {
-			return "half-sister";
+			if (slave2.genes === "XY" && State.variables.seeDick != 0) {
+				return "half-brother";
+			} else {
+				return "half-sister";
+			}
 		} else if (isAunt(slave1, slave2)) {
-			return "niece";
+			if (slave2.genes === "XY" && State.variables.seeDick != 0) {
+				return "nephew";
+			} else {
+				return "niece";
+			}
 		} else if (isAunt(slave2, slave1)) {
-			return "aunt";
+			if (slave2.genes === "XY" && State.variables.seeDick != 0) {
+				return "uncle";
+			} else {
+				return "aunt";
+			}
 		} else if (areCousins(slave2, slave1)) {
 			return "cousin";
 		} else {
-- 
GitLab