diff --git a/src/events/scheduled/murderAttempt.js b/src/events/scheduled/murderAttempt.js index 79ffdff1bc4a4f5cc674cdceb10df0cbeb77f19f..4b58c6ff6f68baf6a037a16f3c14ac278f50d9e3 100644 --- a/src/events/scheduled/murderAttempt.js +++ b/src/events/scheduled/murderAttempt.js @@ -5,21 +5,9 @@ App.Events.murderAttempt = function() { const variation = jsEither(["trade", "slave", "drug", "military"]); const companyName = "RealTec"; // TODO generate name const isSincere = Math.random() > 0.6; - // TODO get business man pronouns dynamically - let he, man, himself, him, his; - if (V.arcologies[0].FSGenderRadicalist === "unset") { - he = "he"; - his = "his"; - him = "him"; - man = "man"; - himself = "himself"; - } else { - he = "she"; - his = "her"; - him = "her"; - man = "woman"; - himself = "herself"; - } + + const {he, his, him, woman: man, himself} = getPronouns(V.arcologies[0].FSGenderRadicalist === "unset" + ? {pronoun: App.Data.Pronouns.Kind.male} : {pronoun: App.Data.Pronouns.Kind.female}); const documentFragment = document.createDocumentFragment(); intro(documentFragment);