From d7c25e2a0d2682a0c02ae834bc4e5d45d7142fc4 Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Sun, 5 Jul 2020 01:02:10 -0400
Subject: [PATCH] Moved standardSlaveReport file

---
 src/endWeek/standardSlaveReport.js | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 src/endWeek/standardSlaveReport.js

diff --git a/src/endWeek/standardSlaveReport.js b/src/endWeek/standardSlaveReport.js
new file mode 100644
index 00000000000..7e669a80033
--- /dev/null
+++ b/src/endWeek/standardSlaveReport.js
@@ -0,0 +1,28 @@
+/**
+	 * Generates (and returns if not silent) a standard slave report
+	 * @param {App.Entity.SlaveState} slave
+	 * @param {boolean} silent
+	 * @returns {HTMLElement|null}
+	 */
+	App.SlaveAssignment.standardSlaveReport = function(slave, silent=false) {
+		const
+			clothes = App.SlaveAssignment.choosesOwnClothes(slave);
+			tired(slave);
+
+		const
+			rules = App.UI.DOM.renderPassage("SA rules"),
+			diet = App.UI.DOM.renderPassage("SA diet"),
+			ltEffects = App.UI.DOM.renderPassage("SA long term effects"),
+			drugs = App.SlaveAssignment.drugs(slave),
+			relationships = App.UI.DOM.renderPassage("SA relationships"),
+			rivalries = App.UI.DOM.renderPassage("SA rivalries"),
+			devotion = App.UI.DOM.renderPassage("SA devotion");
+
+		if (!silent) {
+			const content = App.UI.DOM.makeElement("div", '', "indent");
+
+			$(content).append(clothes, rules, diet, ltEffects, drugs, relationships, rivalries, document.createElement('br'), devotion);
+
+			return content;
+		}
+	}
-- 
GitLab