diff --git a/src/uncategorized/brothelReport.js b/src/uncategorized/brothelReport.js index 583a57b1d4717148637d44db5f59ec6e6f02c6db..281cde1af2ee49479b8e5f84e600fa73c4918cd6 100644 --- a/src/uncategorized/brothelReport.js +++ b/src/uncategorized/brothelReport.js @@ -9,7 +9,7 @@ globalThis.brothelReport = function() { el.append(brothelStats); const _slaves = App.Utils.sortedEmployees(App.Entity.facilities.brothel); - let _DL = _slaves.length, _SL = V.slaves.length, _FLsFetish = 0, _profits = 0, _minBonus = 50, _maxBonus = 150; + let _DL = _slaves.length, _FLsFetish = 0, _profits = 0; V.legendaryWhoreID = 0; V.legendaryWombID = 0; @@ -97,7 +97,7 @@ globalThis.brothelReport = function() { if ((S.Madam.dick > 2) && (canPenetrate(S.Madam))) { r.push(`${His} turgid dick helps ${him} manage the bitches.`); } - App.Events.addNode(el, r); + App.Events.addParagraph(el, r); for (const _slave of _slaves) { V.i = V.slaveIndices[_slave.ID]; @@ -233,7 +233,7 @@ globalThis.brothelReport = function() { } if (_DL > 0) { - const whoreNumber = document.createElement("div"); + const whoreNumber = document.createElement("p"); whoreNumber.classList.add("indent", "bold"); if (_DL !== 1) { @@ -248,15 +248,14 @@ globalThis.brothelReport = function() { V.i = V.slaveIndices[V.MadamID]; /* apply following SA passages to facility leader */ if (V.showEWD !== 0) { - // <br><br> if (V.seeImages && V.seeReportImages) { App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(S.Madam, 0, 0), ["imageRef", "tinyImg"]); } el.append(App.EndWeek.favoriteIcon(S.Madam)); - App.UI.DOM.appendNewElement("span", el, SlaveFullName(S.Madam), "slave-name"); - el.append(` is serving as the Madam. `); - // <br> - + r = []; + App.UI.DOM.makeElement("span", SlaveFullName(S.Madam), "slave-name"); + el.append(`is serving as the Madam.`); + App.Events.addNode(el, r, "div"); r = []; r.push(App.SlaveAssignment.choosesOwnClothes(S.Madam)); tired(S.Madam); @@ -266,9 +265,9 @@ globalThis.brothelReport = function() { r.push(App.SlaveAssignment.drugs(S.Madam)); r.push(App.SlaveAssignment.relationships(S.Madam)); r.push(App.SlaveAssignment.rivalries(S.Madam)); - // <br> - r.push(App.SlaveAssignment.devotion(S.Madam)); - App.Events.addNode(el, r); + App.Events.addParagraph(el, r); + r = [App.SlaveAssignment.devotion(S.Madam)]; + App.Events.addParagraph(el, r); } else { App.SlaveAssignment.choosesOwnClothes(S.Madam); tired(S.Madam); @@ -340,28 +339,32 @@ globalThis.brothelReport = function() { } if (V.showEWD !== 0) { - // <br><br> - r = []; if (V.seeImages && V.seeReportImages) { App.UI.DOM.appendNewElement("div", el, App.Art.SlaveArtElement(_slave, 0, 0), ["imageRef", "tinyImg"]); } el.append(App.EndWeek.favoriteIcon(_slave)); - App.UI.DOM.appendNewElement("span", el, SlaveFullName(_slave), "slave-name"); + r = []; + r.push(App.UI.DOM.makeElement("span", SlaveFullName(_slave), "slave-name")); if (_slave.choosesOwnAssignment === 2) { r.push(App.SlaveAssignment.choosesOwnJob(_slave)); } else { r.push(`is working out of ${V.brothelName}.`); } - r.push(App.UI.DOM.makeElement("p", `${He} ${App.SlaveAssignment.whore(_slave)}`, "indent")); - r.push(App.UI.DOM.makeElement("p", App.SlaveAssignment.choosesOwnClothes(_slave), "indent")); + App.Events.addNode(el, r, "h3"); + r = []; + r.push(He); + r.push(App.SlaveAssignment.whore(_slave)); + r.push(App.SlaveAssignment.choosesOwnClothes(_slave)); + App.Events.addParagraph(el, r); + r = []; r.push(App.SlaveAssignment.rules(_slave)); r.push(App.SlaveAssignment.diet(_slave)); r.push(App.SlaveAssignment.longTermEffects(_slave)); r.push(App.SlaveAssignment.drugs(_slave)); r.push(App.SlaveAssignment.relationships(_slave)); r.push(App.SlaveAssignment.rivalries(_slave)); - r.push(App.UI.DOM.makeElement("p", App.SlaveAssignment.devotion(_slave), "indent")); - App.Events.addNode(el, r); + App.Events.addParagraph(el, r); + App.Events.addParagraph(el, [App.SlaveAssignment.devotion(_slave)]); } else { App.SlaveAssignment.choosesOwnJob(_slave); App.SlaveAssignment.whore(_slave);