From 01e3fdab0c373420ee66812292a4c6f3317da95d Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Tue, 29 Dec 2020 19:59:58 -0500
Subject: [PATCH] add tooltip for lovers of clothing

---
 src/interaction/siWardrobe.js | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js
index 54e5e503409..c415a2e7cb8 100644
--- a/src/interaction/siWardrobe.js
+++ b/src/interaction/siWardrobe.js
@@ -1096,7 +1096,21 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 						}
 				}
 			}
-			return Cloth + ". " + (desc || "");
+			desc = desc || "";
+			if (clothingData) {
+				if (clothingData.fs) {
+					if (clothingData.fs.loves) {
+						const lovers = [];
+						for (const FS of clothingData.fs.loves) {
+							lovers.push(App.Data.FutureSociety.records[FS].noun);
+						}
+						if (lovers.length > 0) {
+							desc += (` ${arrayToSentence(lovers)} will love this. `); // TODO: Please move tooltip to array when that becomes possible
+						}
+					}
+				}
+			}
+			return Cloth + ". " + desc;
 		}
 	}
 	/**
-- 
GitLab