Skip to content
Snippets Groups Projects
Commit e87f9a33 authored by Arkerthan's avatar Arkerthan
Browse files

remove eye/ear object BC

parent 50b687aa
Branches
Tags
1 merge request!5451remove slave eye/ear objects
......@@ -563,56 +563,12 @@
<</if>>
<</if>>
<<if ndef $args[0].eyeball>>
<<if $args[0].eyes == -4>>
<<set $args[0].eyeball = {left: null, right: null}>>
<<else>>
<<if $args[0].eyesImplant>>
<<set _newType = 3>>
<<elseif $args[0].eyes == -3>>
<<set _newType = 2>>
<<else>>
<<set _newType = 1>>
<</if>>
<<switch $args[0].eyes>>
<<case 1>>
<<set _newSee = 1>>
<<case -1>>
<<set _newSee = 2>>
<<case -2>>
<<set _newSee = 3>>
<</switch>>
<<set _newColor = $args[0].eyeColor>>
<<set _newOrig = $args[0].origEye>>
<<set _newPupil = $args[0].pupil>>
<<set _newSclerae = $args[0].sclerae>>
<<set $args[0].eyeball = {
left: new App.Entity.EyeState(),
right: new App.Entity.EyeState()
}>>
<<set $args[0].eyeball.left.type = _newType, $args[0].eyeball.right.type = _newType, $args[0].eyeball.left.see = _newSee, $args[0].eyeball.right.see = _newSee>>
<</if>>
<<run delete $args[0].missingEyes>>
<<if def $args[0].eyeball>>
<<run delete $args[0].eyeball>>
<</if>>
<<if ndef $args[0].auricle>>
<<if $args[0].earShape == "none">>
<<set $args[0].auricle = {left: null, right: null}>>
<<else>>
<<if $args[0].earShape == "damaged">>
<<set _newShape = "normal">>
<<set _newDam = 1>>
<<else>>
<<set _newShape = $args[0].earShape>>
<<set _newDam = 0>>
<</if>>
<<set _newPierce = $args[0].earPiercing>>
<<set $args[0].auricle = {
left: new App.Entity.EarState(),
right: new App.Entity.EarState()
}>>
<<set $args[0].auricle.left.shape = _newShape, $args[0].auricle.right.shape = _newShape, $args[0].auricle.left.damage = _newDam, $args[0].auricle.right.damage = _newDam, $args[0].auricle.left.piercing = _newPierce, $args[0].auricle.right.piercing = _newPierce>>
<</if>>
<<if def $args[0].auricle>>
<<run delete $args[0].auricle>>
<</if>>
<<if ndef _Slave.readyProsthetics>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment