From e36f70e16bd20cb6cd0ee49c9f7a513ecfa01046 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 20 Dec 2020 02:42:01 -0500
Subject: [PATCH] add tooltips for slutty

---
 src/interaction/siUtilities.js | 9 +++++++++
 src/interaction/siWardrobe.js  | 6 ++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/interaction/siUtilities.js b/src/interaction/siUtilities.js
index c95185faa66..4592d2fa6f1 100644
--- a/src/interaction/siUtilities.js
+++ b/src/interaction/siUtilities.js
@@ -32,6 +32,7 @@ App.UI.SlaveInteract.placeInLine = function(slave) {
  * @property {object} [update] - properties to be merged into global state
  * @property {string} [disabled] - text indicating why the option is unavailable
  * @property {string} [note]
+ * @property {string} [slutty]
  */
 
 /** Generate a row of choices
@@ -60,12 +61,20 @@ App.UI.SlaveInteract.generateRows = function(array, slave, category, accessCheck
 				link = App.UI.DOM.disabledLink(item.text, [unlocked]);
 			} else {
 				link = document.createElement('span');
+				const toolTips = [];
+				if (item.hasOwnProperty("slutty")) {
+					toolTips.push(item.slutty ? 'Slutty' : 'Modest');
+				}
+				console.log(item);
 
 				// Set up the link
 				link.appendChild(
 					App.UI.DOM.link(
 						`${item.text} `,
 						() => { click(item); },
+						[],
+						"",
+						toolTips.join(" ")
 					)
 				);
 
diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js
index 0fcb96a8101..4e8eca0558c 100644
--- a/src/interaction/siWardrobe.js
+++ b/src/interaction/siWardrobe.js
@@ -57,7 +57,8 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				clothingOption = {
 					text: item.name,
 					updateSlave: {clothes: item.value, choosesOwnClothes: 0},
-					FS: item.fs
+					FS: item.fs,
+					slutty: item.slutty
 				};
 				niceOptionsArray.push(clothingOption);
 			});
@@ -66,7 +67,8 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				clothingOption = {
 					text: item.name,
 					updateSlave: {clothes: item.value, choosesOwnClothes: 0},
-					FS: item.fs
+					FS: item.fs,
+					slutty: item.slutty
 				};
 				if (item.value !== "choosing her own clothes") {
 					harshOptionsArray.push(clothingOption);
-- 
GitLab