Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
e87f9a33
"README.md" did not exist on "c0f1b6bc82ace19396f28b97eb1bbca1fa339b2d"
Commit
e87f9a33
authored
5 years ago
by
Arkerthan
Browse files
Options
Downloads
Patches
Plain Diff
remove eye/ear object BC
parent
50b687aa
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!5451
remove slave eye/ear objects
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pregmod/widgets/pregmodWidgets.tw
+4
-48
4 additions, 48 deletions
src/pregmod/widgets/pregmodWidgets.tw
with
4 additions
and
48 deletions
src/pregmod/widgets/pregmodWidgets.tw
+
4
−
48
View file @
e87f9a33
...
...
@@ -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>>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment