Skip to content
Snippets Groups Projects
Commit f1b51017 authored by Arkerthan's avatar Arkerthan
Browse files

use $slaveIndices

parent 73b7ab32
No related branches found
No related tags found
1 merge request!5313Prosthetics stuff
......@@ -25,7 +25,7 @@
<<= setup.prosthetics[_task.id].name>> construction project.
<<set $prosthetics[_task.id].amount += 1>>
<<case "craftFit">>
<<set_i = $slaves.findIndex(function(s) {return s.ID == _task.slaveID}), addProsthetic($slaves[_i], _task.id)>>
<<set _i = $slaveIndices[_task.slaveID], addProsthetic($slaves[_i], _task.id)>>
project to construct <<= addA(setup.prosthetics[_task.id].name)>> for <<= SlaveFullName($slaves[_i])>>.
<</switch>>
<<set $researchLab.tasks.shift(), _task = $researchLab.tasks[0]>>
......
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