Skip to content
Snippets Groups Projects
Commit aec3087e authored by lowercasedonkey's avatar lowercasedonkey
Browse files

temp reverse incubator REt

parent 0dcf2852
No related branches found
No related tags found
1 merge request!8087Please review: Incubator: port newChildIntro to JS.
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
<br><br> <br><br>
<<set $activeSlave = $readySlave>>
<<set $incubatorSlaves-->> <<set $incubatorSlaves-->>
<<includeDOM App.Desc.longSlave(V.readySlave)>> <<includeDOM App.Desc.longSlave(V.activeSlave)>>
<<if $readySlave.tankBaby != 3>> <<if $readySlave.tankBaby != 3>>
<<if $incubatorOrgans.length > 0>> <<if $incubatorOrgans.length > 0>>
<<for _irw = 0; _irw < $incubatorOrgans.length; _irw++>> <<for _irw = 0; _irw < $incubatorOrgans.length; _irw++>>
<<if $incubatorOrgans[_irw].ID == $incubatorOldID>> <<if $incubatorOrgans[_irw].ID == $incubatorOldID>>
<<set _newOrgan = {type: $incubatorOrgans[_irw].type, weeksToCompletion: $incubatorOrgans[_irw].weeksToCompletion, ID: $readySlave.ID}>> <<set _newOrgan = {type: $incubatorOrgans[_irw].type, weeksToCompletion: $incubatorOrgans[_irw].weeksToCompletion, ID: $activeSlave.ID}>>
<<if _newOrgan.weeksToCompletion <= 0>> <<if _newOrgan.weeksToCompletion <= 0>>
<<set $completedOrgans.push($incubatorOrgans[_irw])>> <<set $completedOrgans.push($incubatorOrgans[_irw])>>
<<else>> <<else>>
...@@ -24,7 +25,7 @@ ...@@ -24,7 +25,7 @@
<</if>> <</if>>
<</for>> <</for>>
<</if>> <</if>>
<<run newSlave($readySlave)>> <<run newSlave($activeSlave)>>
<<include "New Child Intro">> <<include "New Child Intro">>
<<else>> <<else>>
A husk is ready to be used. A husk is ready to be used.
......
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