Skip to content
Snippets Groups Projects
Commit 129e12e8 authored by svornost's avatar svornost
Browse files

Fix subordinate targeting *again*

parent e53c4808
No related branches found
No related tags found
1 merge request!6214Fix Subordinate Targeting again, and improve it a bit
......@@ -166,6 +166,18 @@ App.Entity.Facilities.PenthouseJobs = {
return `<<run App.Utils.setActiveSlaveByIndex(${i})>>` + (callback !== undefined ? callback(assignment) : '');
}, linkText);
}
assignmentLinkElement(i, passage, callback, linkText) {
linkText = linkText || this.desc.position;
return App.UI.DOM.assignmentLink(V.slaves[i], this.desc.assignment, "Subordinate Targeting",
(slave, assignment) => {
if (callback) {
callback(slave, assignment);
}
App.Utils.setActiveSlaveByIndex(i);
V.returnTo = passage;
}, linkText);
}
},
Cow: class extends App.Entity.Facilities.PenthouseJob {
checkRequirements(slave) {
......
:: Subordinate Targeting [nobr]
<<set $nextButton = "Back", $nextLink = "Slave Interact">>
<<set $nextButton = "Back", $nextLink = "AS Dump">>
<<setLocalPronouns $activeSlave>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment