Skip to content
Snippets Groups Projects
Commit 79b50a58 authored by CheaterDude's avatar CheaterDude
Browse files

Update mod_EditSlaveCheatDatatypeCleanupNew.tw

Added checks for eyes, limbs, electrolarynx, cochlear and tail cybernetics/prosthetics
parent 54f26241
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,29 @@ ...@@ -104,6 +104,29 @@
<<set $tempSlave.amp = 1>> <<set $tempSlave.amp = 1>>
<</if>> <</if>>
*/ */
<<if $tempSlave.earImplant == 1 && !isProstheticAvailable($tempSlave, "cochlear")>><<run addProsthetic($tempSlave, "cochlear")>><</if>>
<<if $tempSlave.electrolarynx == 1 && !isProstheticAvailable($tempSlave, "electrolarynx")>><<run addProsthetic($tempSlave, "electrolarynx")>><</if>>
<<if $tempSlave.eye.right != null>>
<<if $tempSlave.eye.right.type == 3 && !isProstheticAvailable($tempSlave, "ocular")>><<run addProsthetic($tempSlave, "ocular")>><</if>>
<</if>>
<<if $tempSlave.eye.left != null>>
<<if $tempSlave.eye.left.type == 3 && !isProstheticAvailable($tempSlave, "ocular")>><<run addProsthetic($tempSlave, "ocular")>><</if>>
<</if>>
<<if $tempSlave.arm.left != null >>
<<run configureLimbs($tempSlave, "left arm", $tempSlave.arm.left.type)>>
<</if>>
<<if $tempSlave.arm.right != null >>
<<run configureLimbs($tempSlave, "right arm", $tempSlave.arm.right.type)>>
<</if>>
<<if $tempSlave.leg.left != null >>
<<run configureLimbs($tempSlave, "left leg", $tempSlave.leg.left.type)>>
<</if>>
<<if $tempSlave.leg.right != null >>
<<run configureLimbs($tempSlave, "right leg", $tempSlave.leg.right.type)>>
<</if>>
<<if $tempSlave.pLimb == 2 && !isProstheticAvailable($tempSlave, "interfaceP2")>><<run addProsthetic($tempSlave, "interfaceP2")>>
<<elseif $tempSlave.pLimb == 1 && !isProstheticAvailable($tempSlave, "interfaceP1")>><<run addProsthetic($tempSlave, "interfaceP1")>>
<</if>>
<<if hasAllNaturalLimbs($tempSlave) && ($tempSlave.PLimb > 0)>> <<if hasAllNaturalLimbs($tempSlave) && ($tempSlave.PLimb > 0)>>
<<print "Slave has normal limbs, limb interface reset to 0 (no interface)">><br> <<print "Slave has normal limbs, limb interface reset to 0 (no interface)">><br>
<<set $tempSlave.PLimb = 0>> <<set $tempSlave.PLimb = 0>>
...@@ -130,6 +153,17 @@ ...@@ -130,6 +153,17 @@
<<if !hasAnyArms($tempSlave)>> <<if !hasAnyArms($tempSlave)>>
<<set $tempSlave.nails = 0>> <<set $tempSlave.nails = 0>>
<</if>> <</if>>
<<if $tempSlave.PTail == 1 && !isProstheticAvailable($tempSlave, "interfaceTail")>><<run addProsthetic($tempSlave, "interfaceTail")>><</if>>
<<if $tempSlave.PTail == 0 && $tempSlave.tail != "none">><br>
<<print "No tail interface installed: Tail got removed">><br>
<<set $tempSlave.tail = "none">>
<<elseif $tempSlave.tail == "sex" && !isProstheticAvailable($tempSlave, "sexT")>><<run addProsthetic($tempSlave, "sexT")>>
<<elseif $tempSlave.tail == "combat" && !isProstheticAvailable($tempSlave, "combatT")>><<run addProsthetic($tempSlave, "combatT")>>
<<elseif $tempSlave.tail == "mod">>
<<if !isProstheticAvailable($tempSlave, "modT")>><<run addProsthetic($tempSlave, "modT")>><</if>>
<<if $tempSlave.tailShape == "none">><<print "Tailshape was missing: set to Cat">><<set $tempSlave.tailShape = "neko">><br><</if>>
<<if $tempSlave.tailColor == "none">><<print "Tailcolor was missing: set to original haircolor">><<set $tempSlave.tailColor = $tempSlave.origHColor>><br><</if>>
<</if>>
/* TODO rework */ /* TODO rework */
/* /*
<<if ($tempSlave.amp != 0)>> <<if ($tempSlave.amp != 0)>>
......
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