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

use addProsthetic instead of direct access

parent a6bc66c9
No related branches found
No related tags found
No related merge requests found
...@@ -1011,7 +1011,7 @@ You head down to your <<if $surgeryUpgrade == 1>>heavily upgraded and customized ...@@ -1011,7 +1011,7 @@ You head down to your <<if $surgeryUpgrade == 1>>heavily upgraded and customized
<<set _p = $adjustProsthetics[_k]>> <<set _p = $adjustProsthetics[_k]>>
<<if _p.slaveID == $activeSlave.ID && _p.workLeft <= 0>> <<if _p.slaveID == $activeSlave.ID && _p.workLeft <= 0>>
<<set $adjustProsthetics.splice(_k, 1), _k-->> <<set $adjustProsthetics.splice(_k, 1), _k-->>
<<set $activeSlave.readyProsthetics.push({id: _p.id})>> <<set addProsthetic($activeSlave, _p.id)>>
<br><hr> <br><hr>
<<switch _p.id>> <<switch _p.id>>
<<case "ocular">> <<case "ocular">>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<<if $adjustProstheticsCompleted > 0>> <<if $adjustProstheticsCompleted > 0>>
<<set $adjustProsthetics = $adjustProsthetics.filter(function(p) { <<set $adjustProsthetics = $adjustProsthetics.filter(function(p) {
if (p.workLeft <= 0 && p.slaveID == $activeSlave.ID) { if (p.workLeft <= 0 && p.slaveID == $activeSlave.ID) {
$activeSlave.readyProsthetics.push({id: p.id}); addProsthetic($activeSlave, p.id);
$adjustProstheticsCompleted--; $adjustProstheticsCompleted--;
return false; return false;
} }
......
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