Skip to content
Snippets Groups Projects
Commit 52daeaac authored by Vrelnir's avatar Vrelnir
Browse files

Merge branch 'bug_fixes' into 'dev'

Transformations bug fix

See merge request Vrelnir/degrees-of-lewdity!1270
parents 3823b304 775f0040
No related branches found
No related tags found
1 merge request!1270Transformations bug fix
:: Transformation Widgets [widget]
<<widget "setupTransformationPiecesObject">>
<<set $transformationParts to{
traits: {fangs:"disabled", sharpEyes:"disabled"},
angel: {halo:"disabled", wings:"disabled"},
fallenAngel: {halo:"disabled", wings:"disabled"},
demon: {horns:"disabled", wings:"disabled", tail: "disabled"},
cat: {ears:"disabled", tail:"disabled"},
cow: {horns:"disabled", ears:"disabled", tail:"disabled"},
wolf: {ears:"disabled", tail:"disabled", pubes:"disabled", pits:"disabled"},
bird: {tail:"disabled", wings:"disabled", eyes:"disabled", malar:"disabled", plumage:"disabled", pubes:"disabled"}
}>>
<<if $specialTransform is 1>>
<<if $angel gte 4>>
<<set $transformationParts.angel.halo to "default">>
<</if>>
<<if $angel gte 6>>
<<set $transformationParts.angel.wings to "default">>
<</if>>
<<if $fallenangel gte 2>>
<<set $transformationParts.fallenAngel.halo to "default">>
<<set $transformationParts.fallenAngel.wings to "default">>
<</if>>
<<if $demon gte 2>>
<<set $transformationParts.demon.horns to "default">>
<</if>>
<<if $demon gte 4>>
<<set $transformationParts.demon.tail to "default">>
<</if>>
<<if $demon gte 6>>
<<set $transformationParts.demon.wings to "default">>
<</if>>
<</if>>
<<if $physicalTransform is 1>>
<<if $wolfgirl gte 2>>
<<set $transformationParts.traits.fangs to "hidden">>
<</if>>
<<if $wolfgirl gte 4>>
<<set $transformationParts.wolf.ears to "default">>
<<set $transformationParts.wolf.pubes to "default">>
<<set $transformationParts.wolf.pits to "default">>
<</if>>
<<if $wolfgirl gte 6>>
<<set $transformationParts.wolf.tail to "default">>
<</if>>
<<if $cat gte 2>>
<<set $transformationParts.traits.fangs to "hidden">>
<</if>>
<<if $cat gte 4>>
<<set $transformationParts.cat.ears to "default">>
<</if>>
<<if $cat gte 6>>
<<set $transformationParts.cat.tail to "default">>
<</if>>
<<if $cow gte 2>>
<<set $transformationParts.cow.horns to "default">>
<</if>>
<<if $cow gte 4>>
<<set $transformationParts.cow.ears to "default">>
<<if $transformationParts is undefined>>
<<set $transformationParts to{
traits: {fangs:"disabled", sharpEyes:"disabled"},
angel: {halo:"disabled", wings:"disabled"},
fallenAngel: {halo:"disabled", wings:"disabled"},
demon: {horns:"disabled", wings:"disabled", tail: "disabled"},
cat: {ears:"disabled", tail:"disabled"},
cow: {horns:"disabled", ears:"disabled", tail:"disabled"},
wolf: {ears:"disabled", tail:"disabled", pubes:"disabled", pits:"disabled"},
bird: {tail:"disabled", wings:"disabled", eyes:"disabled", malar:"disabled", plumage:"disabled", pubes:"disabled"}
}>>
<<if $specialTransform is 1>>
<<if $angel gte 4>>
<<set $transformationParts.angel.halo to "default">>
<</if>>
<<if $angel gte 6>>
<<set $transformationParts.angel.wings to "default">>
<</if>>
<<if $fallenangel gte 2>>
<<set $transformationParts.fallenAngel.halo to "default">>
<<set $transformationParts.fallenAngel.wings to "default">>
<</if>>
<<if $demon gte 2>>
<<set $transformationParts.demon.horns to "default">>
<</if>>
<<if $demon gte 4>>
<<set $transformationParts.demon.tail to "default">>
<</if>>
<<if $demon gte 6>>
<<set $transformationParts.demon.wings to "default">>
<</if>>
<</if>>
<<if $cow gte 6>>
<<set $transformationParts.cow.tail to "default">>
<<if $physicalTransform is 1>>
<<if $wolfgirl gte 2>>
<<set $transformationParts.traits.fangs to "hidden">>
<</if>>
<<if $wolfgirl gte 4>>
<<set $transformationParts.wolf.ears to "default">>
<<set $transformationParts.wolf.pubes to "default">>
<<set $transformationParts.wolf.pits to "default">>
<</if>>
<<if $wolfgirl gte 6>>
<<set $transformationParts.wolf.tail to "default">>
<</if>>
<<if $cat gte 2>>
<<set $transformationParts.traits.fangs to "hidden">>
<</if>>
<<if $cat gte 4>>
<<set $transformationParts.cat.ears to "default">>
<</if>>
<<if $cat gte 6>>
<<set $transformationParts.cat.tail to "default">>
<</if>>
<<if $cow gte 2>>
<<set $transformationParts.cow.horns to "default">>
<</if>>
<<if $cow gte 4>>
<<set $transformationParts.cow.ears to "default">>
<</if>>
<<if $cow gte 6>>
<<set $transformationParts.cow.tail to "default">>
<</if>>
<</if>>
<</if>>
<<if $transformationParts.fallenAngel.halo is 1>>
......@@ -99,6 +101,15 @@
<<set $transformationParts.bird.pubes to "disabled">>
<</if>>
<</if>>
<<if $transformationParts.traits is undefined>>
<<set $transformationParts.traits to {fangs:"disabled", sharpEyes:"disabled"}>>
<<if $wolfgirl gte 2 or $cat gte 2>>
<<set $transformationParts.traits.fangs to "hidden">>
<</if>>
<<if $cat gte 2 or $harpy gte 2>>
<<set $transformationParts.traits.sharpEyes to "hidden">>
<</if>>
<</if>>
<</widget>>
<<widget "transform">>/*First arg is transformation, second is the intensity of change.*/
......@@ -202,12 +213,14 @@
<<else>>
<<for _i to 0; _i lt _keys.length; _i++>>
<<set _key to _keys[_i]>>
<<for _label, _value range $transformationParts[_key]>>
<<if _value is "hidden" and _label isnot "pubes" and _label isnot "pits" and _label isnot "cheeks" and !(_label is "wings" and _excludeWings is true)>>
<<trauma 15>>
<<set _hiddenTrauma to true>>
<</if>>
<</for>>
<<if _key isnot "traits">>
<<for _label, _value range $transformationParts[_key]>>
<<if _value is "hidden" and _label isnot "pubes" and _label isnot "pits" and _label isnot "cheeks" and !(_label is "wings" and _excludeWings is true)>>
<<trauma 15>>
<<set _hiddenTrauma to true>>
<</if>>
<</for>>
<</if>>
<</for>>
<<if _hiddenTrauma is true>>
<span class="red">Hiding your inner self takes a toll on your mental state.</span>
......
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