From 22ee059047b956a73ff86d74651875ca4793f25f Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Wed, 28 Oct 2020 20:49:25 -0400 Subject: [PATCH] cleanup --- src/uncategorized/brothelReport.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/uncategorized/brothelReport.js b/src/uncategorized/brothelReport.js index 33d52281cdf..72d2345715e 100644 --- a/src/uncategorized/brothelReport.js +++ b/src/uncategorized/brothelReport.js @@ -218,30 +218,27 @@ globalThis.brothelReport = function() { he, him, his, himself, He, His, wife } = getPronouns(S.Madam)); let oldCash = V.cash; + r = []; if (V.showEWD !== 0) { - // <br> r.push(`${He} ${App.SlaveAssignment.whore(S.Madam)}`); } else { - r.push(App.SlaveAssignment.whore(S.Madam)); + App.SlaveAssignment.whore(S.Madam); } - // <br> - el.append(`${He} whores ${himself} because ${he} doesn't have enough whores to manage to keep ${him} busy, and makes <span class="cash inc">${cashFormat(S.Madam.lastWeeksCashIncome)}.</span> ${He} can charge more for ${his} time, since many citizens find it erotic to fuck the Madam.`); + App.Events.addParagraph(el, r); + App.Events.addParagraph(el, [`${He} whores ${himself} because ${he} doesn't have enough whores to manage to keep ${him} busy, and makes <span class="cash inc">${cashFormat(S.Madam.lastWeeksCashIncome)}.</span> ${He} can charge more for ${his} time, since many citizens find it erotic to fuck the Madam.`]); profits += V.cash - oldCash; oldCash = V.cash; } - if (SL > 0) { - // <br><br> - } } if (SL > 0) { const whoreNumber = document.createElement("p"); whoreNumber.classList.add("indent", "bold"); - if (SL !== 1) { - whoreNumber.append(`There are ${SL} slave whores working out of ${V.brothelName}.`); - } else { + if (SL === 1) { whoreNumber.append(`There is one slave whore working out of ${V.brothelName}.`); + } else { + whoreNumber.append(`There are ${SL} slave whores working out of ${V.brothelName}.`); } el.append(whoreNumber); } -- GitLab