diff --git a/src/facilities/ads.js b/src/facilities/ads.js index 54b79c0e21a8159938c1bb8bbd3b2c22a52cd3cd..8494ed0c014a0ca0c1886618efb15300bc44a70f 100644 --- a/src/facilities/ads.js +++ b/src/facilities/ads.js @@ -245,11 +245,13 @@ App.Ads.AdManager = class { } }; -App.Ads.report = function(building, preview) { - "use strict"; - if (typeof preview === undefined) { - preview =false; - } +/** + * + * @param {string} building + * @param {boolean} [preview] + * @returns {string} + */ +App.Ads.report = function(building, preview = false) { let r = ``; /** @type {App.Entity.Facilities.Facility} */ diff --git a/src/uncategorized/brothelReport.js b/src/uncategorized/brothelReport.js index c0a51abfe1bec9d88b54a15284caaa3421bf21b7..51dfb042f470e4c4ffbb38a8a14f98d372647322 100644 --- a/src/uncategorized/brothelReport.js +++ b/src/uncategorized/brothelReport.js @@ -346,8 +346,7 @@ globalThis.brothelReport = function() { getSlaveStatisticData(slave, V.facility.brothel).adsIncome += _adsIncome; cashX(_cashX, "brothelAds"); } - - App.UI.DOM.appendNewElement("p", el, App.Ads.report("brothel")); + App.Events.addParagraph(el, [App.Ads.report("brothel", false)]); _profits += V.cash - _oldCash; // <!-- Record statistics gathering -->