From 15f11e9789a71ff952c3bb1a85d82d6fe1226d38 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 4 May 2020 21:24:04 -0400 Subject: [PATCH] cleanup --- src/interaction/slaveInteract.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/interaction/slaveInteract.js b/src/interaction/slaveInteract.js index d919872c41f..7b155570b02 100644 --- a/src/interaction/slaveInteract.js +++ b/src/interaction/slaveInteract.js @@ -171,15 +171,7 @@ App.UI.SlaveInteract.work = function(slave) { let span; const links = []; const { - // eslint-disable-next-line no-unused-vars - he, - him, - his, - hers, - himself, - boy, He, - His } = getPronouns(slave); function appendLink(text, whoreClass, enabled, disabledText) { @@ -258,16 +250,13 @@ App.UI.SlaveInteract.work = function(slave) { span.textContent = `${He} is the Wardeness and is not available for other work`; break; default: - // CAN BE REASSIGNED span.classList.remove("note"); span.id = "assignmentLinks"; span.appendChild(App.UI.SlaveInteract.assignmentBlock("assignmentLinks", slave)); - if ((V.brothel + V.club + V.dairy + V.farmyard + V.servantsQuarters + V.masterSuite + V.spa + V.nursery + V.clinic + V.schoolroom + V.cellblock + V.arcade + V.HGSuite) > 0) { span.append(`Transfer to: `); - span.appendChild(App.UI.jobLinks.transfersFragment(slave.ID, (slave, assignment) => { App.UI.SlaveList.ScrollPosition.record(); assignJob(slave, assignment); })); } @@ -275,7 +264,7 @@ App.UI.SlaveInteract.work = function(slave) { div.id = "fucktoypref"; span.appendChild(div); App.UI.SlaveInteract.fucktoyPref(slave); - } // END CAN BE REASSIGNED + } el.append(span); if (slave.assignment === "whore" || slave.assignment === "work in the brothel") { @@ -337,8 +326,6 @@ App.UI.SlaveInteract.work = function(slave) { return link; } - - return jQuery('#work').empty().append(el); }; -- GitLab