diff --git a/src/interaction/slaveInteract.js b/src/interaction/slaveInteract.js index cd3a265ea646be37fde49e615e5d7ecd7911372e..e37eebfc2a2113da32bacb4d3076afdd77ee7376 100644 --- a/src/interaction/slaveInteract.js +++ b/src/interaction/slaveInteract.js @@ -25,20 +25,18 @@ App.UI.SlaveInteract.modify = function(slave) { /** @type {App.Entity.SlaveState} */ const {he, his} = getPronouns(slave); let el = new DocumentFragment(); - let p; let div; let note; + let sceneIntro = document.createElement('p'); + sceneIntro.className = "scene-intro"; + if (["be your agent", "live with your agent"].includes(slave.assignment)) { - p = document.createElement('p'); - p.className = "scene-intro"; - p.textContent = "Recall your agent to modify them."; - el.append(p); + sceneIntro.textContent = "Recall your agent to modify them."; + el.append(sceneIntro); } else { - p = document.createElement('p'); - p.className = "scene-intro"; - p.textContent = "Take slave to another room."; - el.append(p); + sceneIntro.textContent = "Take slave to another room."; + el.append(sceneIntro); // Salon div = document.createElement('div');