diff --git a/src/js/slaveInteract.js b/src/js/slaveInteract.js index 6fb1696c7041a1e0af2ca15a99c9c12f86346dfe..719fabcac81bc055590241015f27fad6b5964cd4 100644 --- a/src/js/slaveInteract.js +++ b/src/js/slaveInteract.js @@ -164,6 +164,18 @@ App.UI.SlaveInteract.assignmentBlock = function(blockId, slave) { assign.textContent = `${slave.assignment}. `; } title.appendChild(assign); + if (slave.assignment === "be a subordinate slave") { + const target = getSlave(slave.subTarget); + let linkText = ``; + if (target) { + title.appendChild(document.createTextNode(`Serving ${target.slaveName} exclusively. | `)); + linkText = `Change`; + } else { + title.appendChild(document.createTextNode(`Serving all your other slaves. | `)); + linkText = `Choose a specific slave to submit to`; + } + title.appendChild(App.UI.DOM.passageLink(linkText, "Subordinate Targeting", () => { V.returnTo = "Slave Interact"; })); + } if (V.assignmentRecords[slave.ID] && V.assignmentRecords[slave.ID] !== slave.assignment) { title.append(`Previously: `); assign = document.createElement('span');