From 2d908dd1f22afa6a5dc3543b8b1cd98647070705 Mon Sep 17 00:00:00 2001
From: DCoded <dicoded@email.com>
Date: Thu, 16 Dec 2021 20:59:08 -0500
Subject: [PATCH] Added logging

---
 src/interaction/useSlave/useSlave.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/interaction/useSlave/useSlave.js b/src/interaction/useSlave/useSlave.js
index 88f5458a94c..04b1324b201 100644
--- a/src/interaction/useSlave/useSlave.js
+++ b/src/interaction/useSlave/useSlave.js
@@ -15,6 +15,8 @@ App.UI.SlaveInteract.useSlave = function(slave) {
 
 	const {he, him, his} = getPronouns(slave);
 
+	/** @type {Record<string, string>[]} */
+	const log = [];
 	/** @enum {string} */
 	const none = "none";
 
@@ -132,12 +134,16 @@ App.UI.SlaveInteract.useSlave = function(slave) {
 		available.forEach((e) => links.push(App.UI.DOM.link(e.link, () => {
 			div.innerHTML = e.desc;
 			div.append(App.UI.DOM.makeElement("div", e.reaction, ['indent']));
+
+			log.push({action: e.link});
+
 			e.effect();
 
 			if (V.debugMode) {
 				console.log(
 					playerState,
 					slaveState,
+					log,
 				);
 			}
 
-- 
GitLab