From 6cc4cf0031ad314c47374669d619eed43a2c6806 Mon Sep 17 00:00:00 2001 From: Skriv <skrivelese@gmail.com> Date: Wed, 27 Mar 2019 20:25:30 +0100 Subject: [PATCH] curlybrackets --- src/js/PenthouseNaming.js | 46 +++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/src/js/PenthouseNaming.js b/src/js/PenthouseNaming.js index 9d84a0be2e1..2a740c69751 100644 --- a/src/js/PenthouseNaming.js +++ b/src/js/PenthouseNaming.js @@ -1,14 +1,14 @@ -/* eslint-disable no-undef */ /** * @return {string} */ window.MasterSuiteUIName = function () { const V = State.variables; let name = ""; - if (V.masterSuiteNameCaps === "The Master Suite") + if (V.masterSuiteNameCaps === "The Master Suite") { name = "Master Suite"; - else + } else { name = V.masterSuiteNameCaps; + } return `<<link "${name}""Master Suite">><</link>> `; }; /** @@ -17,10 +17,11 @@ window.MasterSuiteUIName = function () { window.HeadGirlSuiteUIName = function () { const V = State.variables; let name = ""; - if (V.HGSuiteNameCaps === "The Head Girl Suite") + if (V.HGSuiteNameCaps === "The Head Girl Suite") { name = "Head Girl Suite"; - else + } else { name = V.HGSuiteNameCaps; + } return `<<link "${name}""Head Girl Suite">><</link>> `; }; /** @@ -29,10 +30,11 @@ window.HeadGirlSuiteUIName = function () { window.ServantQuartersUIName = function () { const V = State.variables; let name = ""; - if (V.servantsQuartersNameCaps === "The Servants' Quarters") + if (V.servantsQuartersNameCaps === "The Servants' Quarters") { name = "Servants' Quarters"; - else + } else { name = V.servantsQuartersNameCaps; + } return `<<link "${name}""Servants' Quarters">><</link>> `; }; /** @@ -41,10 +43,11 @@ window.ServantQuartersUIName = function () { window.SpaUIName = function() { const V = State.variables; let name = ""; - if (V.spaNameCaps === "The Spa") + if (V.spaNameCaps === "The Spa") { name = "Spa"; - else + } else { name = V.spaNameCaps; + } return `<<link "${name}""Spa">><</link>> `; }; /** @@ -53,10 +56,11 @@ window.SpaUIName = function() { window.NurseryUIName = function () { const V = State.variables; let name = ""; - if (V.nurseryNameCaps === "The Nursery") + if (V.nurseryNameCaps === "The Nursery") { name = "Nursery"; - else + } else { name = V.nurseryNameCaps; + } return `<<link "${name}""Nursery">><</link>> `; }; /** @@ -65,10 +69,11 @@ window.NurseryUIName = function () { window.ClinicUIName = function () { const V = State.variables; let name = ""; - if (V.clinicNameCaps === "The Clinic") + if (V.clinicNameCaps === "The Clinic") { name = "Clinic"; - else + } else { name = V.clinicNameCaps; + } return `<<link "${name}""Clinic">><</link>> `; }; /** @@ -77,10 +82,11 @@ window.ClinicUIName = function () { window.SchoolRoomUIName = function () { const V = State.variables; let name = ""; - if (V.schoolroomNameCaps === "The Schoolroom") + if (V.schoolroomNameCaps === "The Schoolroom") { name = "Schoolroom"; - else + } else { name = V.schoolroomNameCaps; + } return `<<link "${name}""Schoolroom">><</link>> `; }; /** @@ -89,10 +95,11 @@ window.SchoolRoomUIName = function () { window.CellblockUIName = function () { const V = State.variables; let name = ""; - if (V.cellblockNameCaps === "The Cellblock") + if (V.cellblockNameCaps === "The Cellblock") { name = "Cellblock"; - else + } else { name = V.cellblockNameCaps; + } return `<<link "${name}""Cellblock">><</link>> `; }; /** @@ -101,9 +108,10 @@ window.CellblockUIName = function () { window.IncubatorUIName = function () { const V = State.variables; let name = ""; - if (V.incubatorNameCaps === "The Incubator") + if (V.incubatorNameCaps === "The Incubator") { name = "Incubator"; - else + } else { name = V.incubatorNameCaps; + } return `<<link "${name}""Incubator">><</link>> `; }; -- GitLab