From e2950453e6aaf023185c91b93254a97f59947753 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 1 Jul 2020 17:28:52 -0400
Subject: [PATCH] cover HG explicitly

---
 js/003-data/policiesData.js | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/js/003-data/policiesData.js b/js/003-data/policiesData.js
index 98294cb2636..a3bafaea5fa 100644
--- a/js/003-data/policiesData.js
+++ b/js/003-data/policiesData.js
@@ -1664,8 +1664,12 @@ App.Data.Policies.Selection = {
 				titleClass: "lime",
 				text: "your Head Girl will be given legal status as your Consort.",
 				get activatedText() {
-					const {his} = getPronouns(getSlave(V.HeadGirl.ID));
-					return `your Head Girl holds legal status as your Consort, increasing ${his} prominence.`;
+					if (V.HeadGirl.ID) {
+						const {his} = getPronouns(getSlave(V.HeadGirl.ID));
+						return `your Head Girl holds legal status as your Consort, increasing ${his} prominence.`;
+					} else {
+						return `though you do not currently have a Head Girl, they would hold legal status as your Consort, increasing their prominence.`;
+					}
 				},
 				requirements: function() { return (V.arcologies[0].FSEgyptianRevivalist >= 90); },
 				note: `Will increase your Head Girl's prominence`
@@ -1729,12 +1733,20 @@ App.Data.Policies.Selection = {
 				title: "Slave Administrator Enabling Law",
 				titleClass: "lime",
 				get text() {
-					const {him} = getPronouns(getSlave(V.HeadGirl.ID));
-					return `will afford your Head Girl considerable legal power, allowing ${him} to accomplish even more slave training.`;
+					if (V.HeadGirl.ID) {
+						const {him} = getPronouns(getSlave(V.HeadGirl.ID));
+						return `will afford your Head Girl considerable legal power, allowing ${him} to accomplish even more slave training.`;
+					} else {
+						return `will afford a Head Girl considerable legal power, allowing them to accomplish even more slave training.`;
+					}
 				},
 				get activatedText() {
-					const {him} = getPronouns(getSlave(V.HeadGirl.ID));
-					return `affords your Head Girl considerable legal power, allowing ${him} to accomplish even more slave training.`;
+					if (V.HeadGirl.ID) {
+						const {him} = getPronouns(getSlave(V.HeadGirl.ID));
+						return `affords your Head Girl considerable legal power, allowing ${him} to accomplish even more slave training.`;
+					} else {
+						return `affords a Head Girl considerable legal power, allowing them to accomplish even more slave training.`;
+					}
 				},
 				requirements: function() { return (V.arcologies[0].FSChineseRevivalist >= 90); },
 			}
-- 
GitLab