From 961dde8eff102b56e0ac352743c0fa591e43206e Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Sun, 16 Feb 2020 14:01:19 -0500
Subject: [PATCH] moderate tweak

---
 src/js/slaveInteract.js | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/js/slaveInteract.js b/src/js/slaveInteract.js
index 3469ffea03c..cb488539581 100644
--- a/src/js/slaveInteract.js
+++ b/src/js/slaveInteract.js
@@ -51,6 +51,7 @@ App.UI.SlaveInteract.drugs = function(slave) {
 			he, him, his, hers, himself, boy, He, His
 		} = getPronouns(slave);
 	const drugOptions = [];
+	const drugLevelOptions = [];
 
 
 	drugOptions.push({text: `None`, drug: `no drugs`});
@@ -63,20 +64,20 @@ App.UI.SlaveInteract.drugs = function(slave) {
 		) {
 			switch (slave.drugs) {
 				case "intensive breast injections":
-					drugOptions.push({text: `Moderate`, drug: `breast injections`});
+					drugLevelOptions.push({text: `Moderate`, drug: `breast injections`});
 					break;
 				case "intensive butt injections":
-					drugOptions.push({text: `Moderate`, drug: `butt injections`});
+					drugLevelOptions.push({text: `Moderate`, drug: `butt injections`});
 					break;
 				case "intensive penis enhancement":
-					drugOptions.push({text: `Moderate`, drug: `penis enhancement`});
+					drugLevelOptions.push({text: `Moderate`, drug: `penis enhancement`});
 					break;
 				case "intensive testicle enhancement":
-					drugOptions.push({text: `Moderate`, drug: `testicle enhancement`});
+					drugLevelOptions.push({text: `Moderate`, drug: `testicle enhancement`});
 					break;
 			}
 		} else if (slave.drugs === "breast injections" || slave.drugs === "butt injections" || slave.drugs === "penis enhancement" || slave.drugs === "testicle enhancement") {
-			drugOptions.push({text: `Moderate`, drug: "intensive " + slave.drugs});
+			drugLevelOptions.push({text: `Moderate`, drug: "intensive " + slave.drugs});
 		}
 		if (slave.intelligence > -100 && slave.indentureRestrictions < 1) {
 			drugOptions.push({text: `Psychosuppressants`, drug: `psychosuppressants`});
@@ -246,15 +247,16 @@ App.UI.SlaveInteract.drugs = function(slave) {
 	let title = document.createElement('div');
 	title.textContent = `Drugs: `;
 	let chosenDrug = document.createElement('span');
-	chosenDrug.textContent = `${capFirstChar(slave.drugs)}`;
+	chosenDrug.textContent = `${capFirstChar(slave.drugs)} `;
 	chosenDrug.style.fontWeight = "bold";
 	title.append(chosenDrug);
+	title.appendChild(generateRows(drugLevelOptions));
 	el.append(title);
 
 	el.appendChild(generateRows(drugOptions));
 
 	function generateRows(drugArray) {
-		let row = document.createElement('span');
+		let row = document.createDocumentFragment();
 		for (let i = 0; i < drugArray.length; i++) {
 			let link;
 			const separator  = document.createTextNode(` | `);
-- 
GitLab