From 61f0692fb482d52b709eb09886c6217a0302da80 Mon Sep 17 00:00:00 2001 From: hexall90 <hexall90@gmail.com> Date: Mon, 16 Oct 2017 10:21:24 +0200 Subject: [PATCH] fixed activeSlave bug --- src/utility/descriptionWidgets.tw | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utility/descriptionWidgets.tw b/src/utility/descriptionWidgets.tw index 81032067f43..5f2ea55253b 100644 --- a/src/utility/descriptionWidgets.tw +++ b/src/utility/descriptionWidgets.tw @@ -100,6 +100,7 @@ <<if $completedOrgans.length > 0>> <<set _validOrgans = 0>> <<for _dwi = 0; _dwi < $slaves.length; _dwi++>> + <<capture _dwi>> <<set $dumped = 0>> <<set _slaveOrgans = 0>> <<for _dwj = 0; _dwj < $completedOrgans.length; _dwj++>> @@ -111,8 +112,13 @@ /* if the interrogated slave has one or more organs ready: */ <<if _slaveOrgans > 0>> <br>@@.yellow;The fabricator has completed <<if _slaveOrgans > 1>><<print _slaveOrgans>> organs<<else>>an organ<</if>> for@@ - [[$slaves[_dwi].slaveName|Slave Interact][$activeSlave = $slaves[_dwi]]], @@.yellow; which <<if _slaveOrgans > 1>>are<<else>>is<</if>> ready to be implanted.@@ + <<link "<<print $slaves[_dwi].slaveName>>">> + <<set $activeSlave = $slaves[_dwi]>> + <<goto "Slave Interact">> + <</link>> + , @@.yellow; which <<if _slaveOrgans > 1>>are<<else>>is<</if>> ready to be implanted.@@ <</if>> + <</capture>> <</for>> /* if the check returns true it means there are organs without slaves associated to. I think this was the purpouse of the _validHost check in the original code */ <<if _validOrgans < $completedOrgans.length>> -- GitLab