diff --git a/js/003-data/policiesData.js b/js/003-data/policiesData.js index 98294cb2636c4d00b83ba010a465ca2f7f1e412e..a3bafaea5fa6b6dd2e3697f8ebdbcd8bd67fb856 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); }, }