From 829f4be681ac0949aca24a34e6b7fd57d9080964 Mon Sep 17 00:00:00 2001 From: Pregmodder <pregmodder@gmail.com> Date: Sat, 5 Sep 2020 03:31:31 -0400 Subject: [PATCH] Better BG pronoun init --- src/events/scheduled/murderAttempt.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/events/scheduled/murderAttempt.js b/src/events/scheduled/murderAttempt.js index 34c5b04e384..df31e5c3bb9 100644 --- a/src/events/scheduled/murderAttempt.js +++ b/src/events/scheduled/murderAttempt.js @@ -29,7 +29,7 @@ App.Events.murderAttempt = function() { const {he, He, his, him, woman, himself} = getPronouns((V.arcologies[0].FSGenderFundamentalist !== "unset" || V.seeDicks > random(0, 99)) ? {pronoun: App.Data.Pronouns.Kind.male} : {pronoun: App.Data.Pronouns.Kind.female}); const {womanPC} = getPronouns(V.PC).appendSuffix("PC"); - const {heBG, HeBG, himBG, hisBG} = getPronouns(S.Bodyguard ? S.Bodyguard : {pronoun: App.Data.Pronouns.Kind.female}).appendSuffix("BG"); + let heBG, HeBG, himBG, hisBG; const documentFragment = document.createDocumentFragment(); intro(documentFragment); @@ -132,6 +132,9 @@ App.Events.murderAttempt = function() { } if (S.Bodyguard) { + ({ + heBG, HeBG, himBG, hisBG + } = getPronouns(S.Bodyguard).appendSuffix("BG")); r.push(`Before getting anywhere though, ${he} interrupts ${himself}, gesturing at your bodyguard.`); r.push(`"I'm sorry, this is meant only for your ears, can you please send your bodyguard outside?"`); App.Events.addParagraph(fragment, r); -- GitLab