From 3f9dbd8652d4146e1ac5f4d6d5396ee135982200 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Wed, 11 Nov 2020 13:19:31 -0800 Subject: [PATCH] Fix indent class name and arcade output bug --- src/endWeek/brothelReport.js | 2 +- src/endWeek/reports/arcadeReport.js | 5 +++-- src/endWeek/reports/clubReport.js | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/endWeek/brothelReport.js b/src/endWeek/brothelReport.js index 852fd941bb9..a2bc80d7005 100644 --- a/src/endWeek/brothelReport.js +++ b/src/endWeek/brothelReport.js @@ -348,7 +348,7 @@ App.EndWeek.brothelReport = function() { App.SlaveAssignment.standardSlaveReport(slave, false) ], "div", - "indented" + "indent" ); } else { // discard return values silently diff --git a/src/endWeek/reports/arcadeReport.js b/src/endWeek/reports/arcadeReport.js index 10c07796e88..4f0320b1402 100644 --- a/src/endWeek/reports/arcadeReport.js +++ b/src/endWeek/reports/arcadeReport.js @@ -98,7 +98,7 @@ App.EndWeek.arcadeReport = function() { App.SlaveAssignment.workAGloryHole(slave), ], "div", - "indented" + "indent" ); } else { // discard return values silently @@ -127,7 +127,9 @@ App.EndWeek.arcadeReport = function() { } else if (slave.lactation > 0 || slave.balls > 0) { milkResults = App.SlaveAssignment.getMilked(slave, 1.0); if (V.showEWD !== 0) { + r = []; r.push(App.UI.DOM.makeElement("div", `${He} ${milkResults.text}`, "indent")); + App.Events.addNode(el, r, "div", "indent"); } milkProfits += milkResults.cash; growth = 0; @@ -173,7 +175,6 @@ App.EndWeek.arcadeReport = function() { if (slave.inflation > 0) { deflate(slave); } - App.Events.addNode(el, r, "div", "indent"); if (V.showEWD !== 0) { el.append(App.SlaveAssignment.standardSlaveReport(slave, false)); } else { diff --git a/src/endWeek/reports/clubReport.js b/src/endWeek/reports/clubReport.js index 43fc5b9da18..a17b960a166 100644 --- a/src/endWeek/reports/clubReport.js +++ b/src/endWeek/reports/clubReport.js @@ -214,7 +214,7 @@ App.EndWeek.clubReport = function() { App.SlaveAssignment.standardSlaveReport(slave, false) ], "div", - "indented" + "indent" ); } else { // discard return values silently @@ -224,7 +224,7 @@ App.EndWeek.clubReport = function() { } } - App.Events.addNode(el, [App.Ads.report("club")], "p", "indented"); + App.Events.addNode(el, [App.Ads.report("club")], "p", "indent"); // Record statistics gathering const b = V.facility.club; @@ -250,7 +250,7 @@ App.EndWeek.clubReport = function() { `${capFirstChar(V.clubName)}'s customers enjoy <span class="green">having sex in ${V.clubDecoration} surroundings.</span>` ], "p", - "indented" + "indent" ); } -- GitLab