Skip to content
Snippets Groups Projects
Commit aa698fb5 authored by kopareigns's avatar kopareigns
Browse files

More fixes to custom code cheats

parent 8aa99803
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,13 @@ ...@@ -7,9 +7,13 @@
<<goto "Manage Personal Affairs">> <<goto "Manage Personal Affairs">>
<</if>> <</if>>
<<set $customEvalCode = "(" + $customEvalCode + ")">> <<if $customEvalCode>>
<<if typeof eval($customEvalCode) === "function">> <<if $customEvalCode.charAt(0) != "(">>
<<run eval($customEvalCode)($tempSlave)>> <<set $customEvalCode = "(" + $customEvalCode + ")">>
<</if>>
<<if typeof eval($customEvalCode) === "function">>
<<run (eval($customEvalCode))($tempSlave)>>
<</if>>
<</if>> <</if>>
<<unset $customEvalCode>> <<unset $customEvalCode>>
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
<<set $nextButton = "Continue", $nextLink = "Manage Arcology">> <<set $nextButton = "Continue", $nextLink = "Manage Arcology">>
<<set $customEvalCode = "(" + $customEvalCode + ")">> <<if $customEvalCode>>
<<if typeof eval($customEvalCode) === "function">> <<if $customEvalCode.charAt(0) != "(">>
<<run eval($customEvalCode)($arcologies[0])>> <<set $customEvalCode = "(" + $customEvalCode + ")">>
<</if>>
<<if typeof eval($customEvalCode) === "function">>
<<run (eval($customEvalCode))($arcologies[0])>>
<</if>>
<</if>> <</if>>
<<unset $customEvalCode>> <<unset $customEvalCode>>
......
...@@ -7,9 +7,13 @@ ...@@ -7,9 +7,13 @@
<<goto "Slave Interact">> <<goto "Slave Interact">>
<</if>> <</if>>
<<set $customEvalCode = "(" + $customEvalCode + ")">> <<if $customEvalCode>>
<<if typeof eval($customEvalCode) === "function">> <<if $customEvalCode.charAt(0) != "(">>
<<run eval($customEvalCode)($tempSlave)>> <<set $customEvalCode = "(" + $customEvalCode + ")">>
<</if>>
<<if typeof eval($customEvalCode) === "function">>
<<run (eval($customEvalCode))($tempSlave)>>
<</if>>
<</if>> <</if>>
<<unset $customEvalCode>> <<unset $customEvalCode>>
......
...@@ -653,9 +653,13 @@ ...@@ -653,9 +653,13 @@
<br> <br>
<<textarea "_customEvalCode" "">> <<textarea "_customEvalCode" "">>
<<link "Run Custom Function">> <<link "Run Custom Function">>
<<set _customEvalCode = "(" + _customEvalCode + ")">> <<if _customEvalCode>>
<<if typeof eval(_customEvalCode) === "function">> <<if _customEvalCode.charAt(0) != "(">>
<<run eval(_customEvalCode)()>> <<set _customEvalCode = "(" + _customEvalCode + ")">>
<</if>>
<<if typeof eval(_customEvalCode) === "function">>
<<run (eval(_customEvalCode))()>>
<</if>>
<</if>> <</if>>
<<goto _Pass>> <<goto _Pass>>
<</link>> <</link>>
......
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