From a18240040af654b713c2f443d419d381a3a922d0 Mon Sep 17 00:00:00 2001
From: Svornost <11434-svornost@users.noreply.gitgud.io>
Date: Fri, 17 Jul 2020 21:11:34 -0700
Subject: [PATCH] Don't show smart bullet vibe setting if the slave doesn't
 have a smart bullet vibe.

---
 src/interaction/slaveInteract.js | 44 ++++++++++++--------------------
 1 file changed, 17 insertions(+), 27 deletions(-)

diff --git a/src/interaction/slaveInteract.js b/src/interaction/slaveInteract.js
index ece50086303..cd56cffbf02 100644
--- a/src/interaction/slaveInteract.js
+++ b/src/interaction/slaveInteract.js
@@ -2033,17 +2033,7 @@ App.UI.SlaveInteract.nursery = function(slave) {
 App.UI.SlaveInteract.smartSettings = function(slave) {
 	let el = document.createElement('div');
 
-	const {
-		// eslint-disable-next-line no-unused-vars
-		he,
-		him,
-		his,
-		hers,
-		himself,
-		boy,
-		He,
-		His
-	} = getPronouns(slave);
+	const {His} = getPronouns(slave);
 	const bodyPart = [];
 	const BDSM = [];
 	const gender = [];
@@ -2076,33 +2066,33 @@ App.UI.SlaveInteract.smartSettings = function(slave) {
 		gender.push({text: `Anti-women`, updateSlave: {clitSetting: `anti-women`}});
 	}
 
-	let title = document.createElement('div');
+	let label = null;
 	if (slave.clitPiercing === 3) {
 		if (slave.dick < 1) {
-			title.textContent = `${His} smart clit piercing `;
+			label = `${His} smart clit piercing `;
 			if (slave.vaginalAccessory === "smart bullet vibrator") {
-				title.textContent += `and smart bullet vibrator are `;
+				label += `and smart bullet vibrator are `;
 			} else {
-				title.textContent += `is `;
+				label += `is `;
 			}
-			title.textContent += `set to: `;
+			label += `set to: `;
 		} else {
-			title.textContent = `${His} smart frenulum piercing `;
+			label = `${His} smart frenulum piercing `;
 			if (slave.vaginalAccessory === "smart bullet vibrator") {
-				title.textContent += `and smart bullet vibrator are `;
+				label += `and smart bullet vibrator are `;
 			} else {
-				title.textContent += `is `;
+				label += `is `;
 			}
-			title.textContent += `set to: `;
+			label += `set to: `;
 		}
-	} else {
-		title.textContent = `${His} smart bullet vibe is set to: `;
+	} else if (slave.vaginalAccessory === "smart bullet vibrator") {
+		label = `${His} smart bullet vibe is set to: `;
+	}
+	if (label) {
+		let title = App.UI.DOM.appendNewElement('div', el, label);
+		let selected = App.UI.DOM.appendNewElement('span', title, `${slave.clitSetting}. `);
+		selected.style.fontWeight = "bold";
 	}
-	let selected = document.createElement('span');
-	selected.style.fontWeight = "bold";
-	selected.textContent = `${slave.clitSetting}. `;
-	title.append(selected);
-	el.append(title);
 
 	App.UI.SlaveInteract.appendLabeledChoiceRow(el, "Level", level, slave);
 	App.UI.SlaveInteract.appendLabeledChoiceRow(el, "Body part", bodyPart, slave);
-- 
GitLab