Skip to content
Snippets Groups Projects
Commit 772db907 authored by Pregmodder's avatar Pregmodder
Browse files

NG+ compatibility

parent d9599ce1
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,13 @@ You should have received a copy of the GNU General Public License along with thi ...@@ -22,6 +22,13 @@ You should have received a copy of the GNU General Public License along with thi
<<if def $slaves>> <<if def $slaves>>
<<set _SL = $slaves.length>> <<set _SL = $slaves.length>>
/* this loop will take awhile, but should accurately adjust all needed variables on the kept slaves. */
<<for _i = 0; _i < _SL; _i++>>
<<if $slaves[_i].assignment != "be imported">>
<<set $activeSlave = $slaves[_i]>> /* how I wish it didn't need to be $activeSlave */
<<= removeActiveSlave()>>
<</if>>
<</for>>
<<for _i = 0; _i < _SL; _i++>> <<for _i = 0; _i < _SL; _i++>>
<<if $slaves[_i].assignment == "be imported">> <<if $slaves[_i].assignment == "be imported">>
<<set $slaves[_i].ID += 1200000>> <<set $slaves[_i].ID += 1200000>>
...@@ -76,8 +83,6 @@ You should have received a copy of the GNU General Public License along with thi ...@@ -76,8 +83,6 @@ You should have received a copy of the GNU General Public License along with thi
<<set $slaves[_i].livingRules = "spare">> <<set $slaves[_i].livingRules = "spare">>
<<set $slaves[_i].diet = "healthy">> <<set $slaves[_i].diet = "healthy">>
<<set $slaves[_i].pregControl = "none">> <<set $slaves[_i].pregControl = "none">>
<<else>>
<<set _dump = removeSlave(_i), _i--, _SL-->>
<</if>> <</if>>
<</for>> <</for>>
<<set $slaveIndices = slaves2indices()>> <<set $slaveIndices = slaves2indices()>>
......
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