diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js index 69f912be0710c2d1a8012ea4e424f265cb8f5080..e407e3c92982b87e51ec985e63aaf79d62ac789f 100644 --- a/src/art/vector/VectorArtJS.js +++ b/src/art/vector/VectorArtJS.js @@ -39,23 +39,30 @@ window.VectorArt = (function() { ArtVectorAnalAccessories(); ArtVectorButt(); ArtVectorLeg(); - if (slave.amp !== 1) + if (slave.amp !== 1) { ArtVectorFeet(); /* includes shoes and leg outfits*/ + } ArtVectorTorso(); ArtVectorPussy(); ArtVectorPubicHair(); - if (slave.vaginaPiercing !== 0 || slave.clitPiercing !== 0) + if (slave.vaginaPiercing !== 0 || slave.clitPiercing !== 0) { ArtVectorPussyPiercings(); + } ArtVectorChastityBelt(); ArtVectorTorsoOutfit(); /* note: clothing covers chastity belts */ - if (slave.scrotum > 0 && slave.balls > 0) + if (slave.scrotum > 0 && slave.balls > 0) { ArtVectorBalls(); - if (penisDrawtime === 0) /* for dicks behind boobs */ + } + if (penisDrawtime === 0) { /* for dicks behind boobs */ r += penisArtString; + } + ArtVectorBelly(); /* includes navel piercing and belly-related clothing options */ ArtVectorBoob(); /* includes areolae and piercings */ - if (penisDrawtime === 1) /* for dicks in front of boobs */ + if (penisDrawtime === 1) { /* for dicks in front of boobs */ r += penisArtString; + } + ArtVectorBoobAddons(); /* piercings always appear in front of boobs AND dick */ ArtVectorCollar(); /* includes clavicle artwork */ ArtVectorHead(); /* glasses are drawn here */ @@ -73,20 +80,23 @@ window.VectorArt = (function() { ArtVectorColor(slave); /* displayClass is the style class for this display */ - if (T.art_display_id > 0) + // eslint-disable-next-line camelcase + if (T.art_display_id > 0) { T.art_display_id++; - else + } else { // eslint-disable-next-line camelcase T.art_display_id = 1; + } displayClass = `ad${T.art_display_id}`; // eslint-disable-next-line camelcase T.art_display_class = displayClass; /* setup height scaling and style */ - if (V.seeHeight === 0) + if (V.seeHeight === 0) { heightScaleFactor = 1; - else + } else { heightScaleFactor = 200 / slave.height; + } if (V.seeHeight === 0 || (V.seeHeight === 1 && artSize === 3)) { slaveHeightScale = 1; @@ -189,59 +199,66 @@ window.VectorArt = (function() { function setHairLength() { hairLength = undefined; - if (slave.hLength >= 60) + if (slave.hLength >= 60) { hairLength = "Long"; - else if (slave.hLength >= 30) + } else if (slave.hLength >= 30) { hairLength = "Medium"; - else if (slave.hLength >= 10) + } else if (slave.hLength >= 10) { hairLength = "Short"; + } } function setLegSize() { /* Leg wideness switch courtesy of Nov-X */ /* needs to be done even for amputees */ if (slave.hips === -2) { - if (slave.weight <= 0) + if (slave.weight <= 0) { legSize = "Narrow"; - else if (slave.weight < 161) + } else if (slave.weight < 161) { legSize = "Normal"; - else + } else { legSize = "Wide"; + } } else if (slave.hips === -1) { - if (slave.weight <= -11) + if (slave.weight <= -11) { legSize = "Narrow"; - else if (slave.weight < 96) + } else if (slave.weight < 96) { legSize = "Normal"; - else + } else { legSize = "Wide"; + } } else if (slave.hips === 0) { - if (slave.weight <= -96) + if (slave.weight <= -96) { legSize = "Narrow"; - else if (slave.weight < 11) + } else if (slave.weight < 11) { legSize = "Normal"; - else if (slave.weight < 131) + } else if (slave.weight < 131) { legSize = "Wide"; - else + } else { legSize = "Thick"; + } } else if (slave.hips === 1) { - if (slave.weight <= -31) + if (slave.weight <= -31) { legSize = "Normal"; - else if (slave.weight < 31) + } else if (slave.weight < 31) { legSize = "Wide"; - else + } else { legSize = "Thick"; + } } else { /* .hips === 2 or 3 */ - if (slave.weight <= -11) + if (slave.weight <= -11) { legSize = "Wide"; - else + } else { legSize = "Thick"; + } } } function setPenisSize() { penisSize = undefined; - if (slave.dick > 6 || (slave.dick > 0 && slave.belly <= 4000)) + if (slave.dick > 6 || (slave.dick > 0 && slave.belly <= 4000)) { penisSize = Math.clamp(slave.dick, 1, 11) - 1; + } } function penisArtControl() { @@ -277,7 +294,6 @@ window.VectorArt = (function() { case "nice business attire": case "a bunny outfit": case "a chattel habit": - case "harem gauze": case "a huipil": case "a kimono": case "a maternity dress": @@ -287,9 +303,10 @@ window.VectorArt = (function() { case "a penitent nuns habit": if ((canAchieveErection(slave)) && (slave.chastityPenis !== 1)) { penisArtString = jsInclude(`Art_Vector_Bulge_Outfit_Hard_${penisSize}`); - break; /* IN CASE OF NO ERECTION, SKIP TO A NORMAL BULGE */ + break; /* IN CASE OF NO ERECTION, SKIP TO A NORMAL BULGE */ // FIXME: having a break in an if is bad code } /* BULGE OUTFITS LONG OUTFITS */ + // eslint-disable-next-line no-fallthrough case "a cheerleader outfit": case "battlearmor": case "battledress": @@ -342,10 +359,11 @@ window.VectorArt = (function() { case "attractive lingerie for a pregnant woman": case "harem gauze": if (slave.belly <= 4000) { - if (slave.dick > 3) + if (slave.dick > 3) { penisArtString = jsInclude("Art_Vector_Bulge_Outfit_3"); - else + } else { penisArtString = jsInclude(`Art_Vector_Bulge_Outfit_${penisSize}`); + } } break; /* NO BULGE, EVERYTHING HIDDEN */ @@ -358,20 +376,23 @@ window.VectorArt = (function() { if ((canAchieveErection(slave)) && (slave.chastityPenis !== 1)) { penisDrawtime = 1; /* draw erect penis over boobs if boobs do not hide the penis' base */ if (artBoobScaleFactor < 3.7) { - if (slave.foreskin !== 0) + if (slave.foreskin !== 0) { penisArtString = jsInclude(`Art_Vector_Penis_${penisSize}`); - else + } else { penisArtString = jsInclude(`Art_Vector_PenisCirc_${penisSize}`); + } } } else { /* flaccid penises are drawn behind the boobs/belly */ - if (slave.foreskin !== 0) + if (slave.foreskin !== 0) { penisArtString = jsInclude(`Art_Vector_Flaccid_${penisSize}`); - else + } else { penisArtString = jsInclude(`Art_Vector_FlaccidCirc_${penisSize}`); + } /* this draws chastity OVER latex catsuit. prndev finds this alright. */ - if (slave.chastityPenis === 1) + if (slave.chastityPenis === 1) { penisArtString += jsInclude(`Art_Vector_Chastity_Cage_${penisSize}`); + } } } } else { @@ -457,10 +478,11 @@ window.VectorArt = (function() { case "striped panties": case "striped underwear": if (slave.belly <= 4000) { - if (slave.dick > 3) + if (slave.dick > 3) { penisArtString = jsInclude("Art_Vector_Bulge_Outfit_3"); - else + } else { penisArtString = jsInclude(`Art_Vector_Bulge_Outfit_${penisSize}`); + } } break; /* hide everything */ @@ -474,20 +496,23 @@ window.VectorArt = (function() { if ((canAchieveErection(slave)) && (slave.chastityPenis !== 1)) { penisDrawtime = 1; /* draw erect penis over boobs if boobs do not hide the penis' base */ if (artBoobScaleFactor < 3.7) { - if (slave.foreskin !== 0) + if (slave.foreskin !== 0) { penisArtString = jsInclude(`Art_Vector_Penis_${penisSize}`); - else + } else { penisArtString = jsInclude(`Art_Vector_PenisCirc_${penisSize}`); + } } } else { /* flaccid penises are drawn behind the boobs/belly */ - if (slave.foreskin !== 0) + if (slave.foreskin !== 0) { penisArtString = jsInclude(`Art_Vector_Flaccid_${penisSize}`); - else + } else { penisArtString = jsInclude(`Art_Vector_FlaccidCirc_${penisSize}`); + } /* this draws chastity OVER latex catsuit. prndev finds this alright. */ - if (slave.chastityPenis === 1) + if (slave.chastityPenis === 1) { penisArtString += jsInclude(`Art_Vector_Chastity_Cage_${penisSize}`); + } } } } @@ -496,99 +521,108 @@ window.VectorArt = (function() { function setTorsoSize() { /* Torso size switch courtesy of Nov-X */ if (slave.waist >= 96) { - if (slave.weight >= 96) + if (slave.weight >= 96) { torsoSize = "Obese"; - else if (slave.weight >= 11) + } else if (slave.weight >= 11) { torsoSize = "Fat"; - else if (slave.weight > -31) + } else if (slave.weight > -31) { torsoSize = "Chubby"; - else + } else { torsoSize = "Normal"; + } } else if (slave.waist >= 41) { - if (slave.weight >= 131) + if (slave.weight >= 131) { torsoSize = "Obese"; - else if (slave.weight >= 31) + } else if (slave.weight >= 31) { torsoSize = "Fat"; - else if (slave.weight >= 0) + } else if (slave.weight >= 0) { torsoSize = "Chubby"; - else if (slave.weight > -96) + } else if (slave.weight > -96) { torsoSize = "Normal"; - else + } else { torsoSize = "Hourglass"; + } } else if (slave.waist >= 11) { - if (slave.weight >= 161) + if (slave.weight >= 161) { torsoSize = "Obese"; - else if (slave.weight >= 96) + } else if (slave.weight >= 96) { torsoSize = "Fat"; - else if (slave.weight >= 11) + } else if (slave.weight >= 11) { torsoSize = "Chubby"; - else if (slave.weight > -31) + } else if (slave.weight > -31) { torsoSize = "Normal"; - else + } else { torsoSize = "Hourglass"; + } } else if (slave.waist > -11) { - if (slave.weight >= 191) + if (slave.weight >= 191) { torsoSize = "Obese"; - else if (slave.weight >= 131) + } else if (slave.weight >= 131) { torsoSize = "Fat"; - else if (slave.weight >= 31) + } else if (slave.weight >= 31) { torsoSize = "Chubby"; - else if (slave.weight >= 0) + } else if (slave.weight >= 0) { torsoSize = "Normal"; - else if (slave.weight > -96) + } else if (slave.weight > -96) { torsoSize = "Hourglass"; - else + } else { torsoSize = "Unnatural"; + } } else if (slave.waist > -41) { - if (slave.weight >= 161) + if (slave.weight >= 161) { torsoSize = "Fat"; - else if (slave.weight >= 96) + } else if (slave.weight >= 96) { torsoSize = "Chubby"; - else if (slave.weight >= 11) + } else if (slave.weight >= 11) { torsoSize = "Normal"; - else if (slave.weight > -31) + } else if (slave.weight > -31) { torsoSize = "Hourglass"; - else + } else { torsoSize = "Unnatural"; + } } else if (slave.waist > -96) { - if (slave.weight >= 191) + if (slave.weight >= 191) { torsoSize = "Fat"; - else if (slave.weight >= 131) + } else if (slave.weight >= 131) { torsoSize = "Chubby"; - else if (slave.weight >= 31) + } else if (slave.weight >= 31) { torsoSize = "Normal"; - else if (slave.weight > -11) + } else if (slave.weight > -11) { torsoSize = "Hourglass"; - else + } else { torsoSize = "Unnatural"; + } } else { - if (slave.weight >= 161) + if (slave.weight >= 161) { torsoSize = "Chubby"; - else if (slave.weight >= 96) + } else if (slave.weight >= 96) { torsoSize = "Normal"; - else if (slave.weight > 0) + } else if (slave.weight > 0) { torsoSize = "Hourglass"; - else + } else { torsoSize = "Unnatural"; + } } } function ArtVectorAnalAccessories() { - if (slave.buttplug === "long plug") + if (slave.buttplug === "long plug") { r += jsInclude("Art_Vector_Plug_Long"); - else if (slave.buttplug === "large plug") + } else if (slave.buttplug === "large plug") { r += jsInclude("Art_Vector_Plug_Large"); - else if (slave.buttplug === "long, large plug") + } else if (slave.buttplug === "long, large plug") { r += jsInclude("Art_Vector_Plug_Large_Long"); - else if (slave.buttplug === "huge plug") + } else if (slave.buttplug === "huge plug") { r += jsInclude("Art_Vector_Plug_Huge"); - else if (slave.buttplug === "long, huge plug") + } else if (slave.buttplug === "long, huge plug") { r += jsInclude("Art_Vector_Plug_Huge_Long"); + } - if (slave.buttplugAttachment === "tail") + if (slave.buttplugAttachment === "tail") { r += jsInclude("Art_Vector_Plug_Tail"); - else if (slave.buttplugAttachment === "cat tail") + } else if (slave.buttplugAttachment === "cat tail") { r += jsInclude("Art_Vector_Cat_Tail"); + } } function ArtVectorArm() { @@ -597,8 +631,7 @@ window.VectorArt = (function() { /* - changed arm calculation block position*/ /* - added brackets to make boolean logic run */ - if (slave.amp === 1) { - /* Many amputee clothing art files exist, but draw nothing.They are excluded for now to reduce on rendering time + if (slave.amp === 1) { /* Many amputee clothing art files exist, but draw nothing.They are excluded for now to reduce on rendering time r += jsInclude("Art_Vector_Arm_Right_None"); r += jsInclude("Art_Vector_Arm_Left_None"); */ @@ -607,21 +640,23 @@ window.VectorArt = (function() { r += jsInclude(`Art_Vector_Arm_Right_${rightArmType}`); r += jsInclude(`Art_Vector_Arm_Left_${leftArmType}`); if (slave.muscles >= 6) { - if (leftArmType === "High") + if (leftArmType === "High") { r += jsInclude("Art_Vector_Arm_Left_High_MLight"); - else if (leftArmType === "Mid") + } else if (leftArmType === "Mid") { r += jsInclude("Art_Vector_Arm_Left_Mid_MLight"); - else if (leftArmType === "Low") + } else if (leftArmType === "Low") { r += jsInclude("Art_Vector_Arm_Left_Low_MLight"); - else if (leftArmType === "Rebel") + } else if (leftArmType === "Rebel") { r += jsInclude("Art_Vector_Arm_Left_Rebel_MLight"); + } - if (rightArmType === "High") + if (rightArmType === "High") { r += jsInclude("Art_Vector_Arm_Right_High_MLight"); - else if (rightArmType === "Mid") + } else if (rightArmType === "Mid") { r += jsInclude("Art_Vector_Arm_Right_Mid_MLight"); - else if (rightArmType === "Low") + } else if (rightArmType === "Low") { r += jsInclude("Art_Vector_Arm_Right_Low_MLight"); + } } } else if (slave.PLimb === 1 || slave.PLimb === 2) { /* slave is an amputee and has PLimbs equipped */ if (slave.amp === -1) { @@ -630,7 +665,7 @@ window.VectorArt = (function() { } else if (slave.amp === -2) { r += jsInclude(`Art_Vector_Arm_Right_ProstheticSexy_${rightArmType}`); r += jsInclude(`Art_Vector_Arm_Left_ProstheticSexy_${leftArmType}`); - } else if (slave.amp === -3) {/* Reverting beauty limbs to regular SVG */ + } else if (slave.amp === -3) { /* Reverting beauty limbs to regular SVG */ r += jsInclude(`Art_Vector_Arm_Right_ProstheticBeauty_${rightArmType}`); r += jsInclude(`Art_Vector_Arm_Left_ProstheticBeauty_${leftArmType}`); } else if (slave.amp === -4) { @@ -645,12 +680,13 @@ window.VectorArt = (function() { if (V.seeVectorArtHighlights === 1) { if (wearingLatex === true || slave.clothes === "body oil") { /* only some arm positions have art (feel free to add more) */ - if (leftArmType === "High") + if (leftArmType === "High") { r += jsInclude("Art_Vector_Arm_Outfit_Shine_Left_High"); - else if (leftArmType === "Mid") + } else if (leftArmType === "Mid") { r += jsInclude("Art_Vector_Arm_Outfit_Shine_Left_Mid"); - else if (leftArmType === "Low") + } else if (leftArmType === "Low") { r += jsInclude("Art_Vector_Arm_Outfit_Shine_Left_Low"); + } } } /* TODO: simplify selection (select prefix, infix and suffix and combine instead of using switch statements) */ @@ -715,8 +751,9 @@ window.VectorArt = (function() { break; case "a slave gown": /* only some arm positions have art (feel free to add more) */ - if (leftArmType !== "Rebel") + if (leftArmType !== "Rebel") { r += jsInclude(`Art_Vector_Arm_Outfit_SlaveGown_Left_${leftArmType}`); + } } } /* close .amp check */ } @@ -766,12 +803,13 @@ window.VectorArt = (function() { artTranslationY = -284 * (bellyScaleFactor - 1); T.artTransformBelly = `matrix(${bellyScaleFactor},0,0,${bellyScaleFactor},${artTranslationX},${artTranslationY})`; - if (slave.navelPiercing === 1) + if (slave.navelPiercing === 1) { r += jsInclude("Art_Vector_Belly_Pregnant_Piercing"); - else if (slave.navelPiercing === 2) + } else if (slave.navelPiercing === 2) { r += jsInclude("Art_Vector_Belly_Pregnant_Piercing_Heavy"); - else + } else { r += jsInclude("Art_Vector_Belly"); + } switch (slave.clothes) { case "a bra": @@ -837,19 +875,21 @@ window.VectorArt = (function() { } /* belly piercings for flat bellies */ if (slave.belly === 0) { - if (slave.navelPiercing === 1) + if (slave.navelPiercing === 1) { r += jsInclude("Art_Vector_Belly_Piercing"); - else if (slave.navelPiercing === 2) + } else if (slave.navelPiercing === 2) { r += jsInclude("Art_Vector_Belly_Piercing_Heavy"); + } } /* Torso Accessories */ if ((slave.bellyAccessory === "a corset" || slave.bellyAccessory === "an extreme corset") && slave.belly <= 1500) { - if (torsoSize === "Normal") + if (torsoSize === "Normal") { r += jsInclude("Art_Vector_Corsetnormal"); - else if (torsoSize === "Hourglass") + } else if (torsoSize === "Hourglass") { r += jsInclude("Art_Vector_Corsethourglass"); - else if (torsoSize === "Unnatural") + } else if (torsoSize === "Unnatural") { r += jsInclude("Art_Vector_Corsetunnatural"); + } } else if (slave.bellyAccessory === "a small empathy belly") { r += jsInclude("Art_Vector_Empathy_Belly_Small"); } else if (slave.bellyAccessory === "a medium empathy belly") { @@ -869,8 +909,9 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Boob_Alt"); /* shiny clothing */ if (V.seeVectorArtHighlights === 1) { - if (slave.fuckdoll !== 0 || slave.clothes === "a latex catsuit" || slave.clothes === "body oil") + if (slave.fuckdoll !== 0 || slave.clothes === "a latex catsuit" || slave.clothes === "body oil") { r += jsInclude("Art_Vector_Boob_Outfit_Shine"); + } } } switch (slave.clothes) { /* display nipples/areola for the following clothes */ @@ -904,33 +945,35 @@ window.VectorArt = (function() { case "sport shorts": case "striped panties": case "uncomfortable straps": - if (slave.areolaeShape === "star") + if (slave.areolaeShape === "star") { r += jsInclude("Art_Vector_Boob_Areola_Star"); - else if (slave.areolaeShape === "heart") + } else if (slave.areolaeShape === "heart") { r += jsInclude("Art_Vector_Boob_Areola_Heart"); - else if (slave.areolae === 0) + } else if (slave.areolae === 0) { r += jsInclude("Art_Vector_Boob_Areola"); - else if (slave.areolae === 1) + } else if (slave.areolae === 1) { r += jsInclude("Art_Vector_Boob_Areola_Large"); - else if (slave.areolae === 2) + } else if (slave.areolae === 2) { r += jsInclude("Art_Vector_Boob_Areola_Wide"); - else if (slave.areolae >= 3) + } else if (slave.areolae >= 3) { r += jsInclude("Art_Vector_Boob_Areola_Huge"); + } - if (slave.nipples === "tiny") + if (slave.nipples === "tiny") { r += jsInclude("Art_Vector_Boob_NippleTiny"); - else if (slave.nipples === "cute") + } else if (slave.nipples === "cute") { r += jsInclude("Art_Vector_Boob_NippleCute"); - else if (slave.nipples === "puffy") + } else if (slave.nipples === "puffy") { r += jsInclude("Art_Vector_Boob_NipplePuffy"); - else if (slave.nipples === "inverted") + } else if (slave.nipples === "inverted") { r += jsInclude("Art_Vector_Boob_NippleInverted"); - else if (slave.nipples === "huge") + } else if (slave.nipples === "huge") { r += jsInclude("Art_Vector_Boob_NippleHuge"); - else if (slave.nipples === "partially inverted") + } else if (slave.nipples === "partially inverted") { r += jsInclude("Art_Vector_Boob_NipplePartiallyInverted"); - else if (slave.nipples === "fuckable") + } else if (slave.nipples === "fuckable") { r += jsInclude("Art_Vector_Boob_NippleFuckable"); + } } } @@ -1015,69 +1058,79 @@ window.VectorArt = (function() { case "sport shorts": case "striped panties": case "uncomfortable straps": - if (slave.nipplesPiercing === 1) + if (slave.nipplesPiercing === 1) { r += jsInclude("Art_Vector_Boob_Piercing"); - else if (slave.nipplesPiercing > 1) + } else if (slave.nipplesPiercing > 1) { r += jsInclude("Art_Vector_Boob_Piercing_Heavy"); + } - if (slave.areolaePiercing === 1) + if (slave.areolaePiercing === 1) { r += jsInclude("Art_Vector_Boob_Areola_Piercing"); - else if (slave.areolaePiercing > 1) + } else if (slave.areolaePiercing > 1) { r += jsInclude("Art_Vector_Boob_Areola_Piercingheavy"); + } } } } function ArtVectorButt() { - if (slave.amp === 0) + if (slave.amp === 0) { r += jsInclude(`Art_Vector_Butt_${buttSize}`); - else if (slave.amp === -1) + } else if (slave.amp === -1) { r += jsInclude(`Art_Vector_Butt_ProstheticBasic_${buttSize}`); - else if (slave.amp === -2) + } else if (slave.amp === -2) { r += jsInclude(`Art_Vector_Butt_ProstheticSexy_${buttSize}`); - else if (slave.amp === -3) /* reverted to regular SVG to match description */ + } else if (slave.amp === -3) { /* reverted to regular SVG to match description */ r += jsInclude(`Art_Vector_Butt_ProstheticBeauty_${buttSize}`); - else if (slave.amp === -4) + } else if (slave.amp === -4) { r += jsInclude(`Art_Vector_Butt_ProstheticCombat_${buttSize}`); - else if (slave.amp === -5) + } else if (slave.amp === -5) { r += jsInclude(`Art_Vector_Butt_ProstheticSwiss_${buttSize}`); + } } function ArtVectorChastityBelt() { let bodySize = ""; if (slave.waist >= 96) { - if (slave.weight >= 11) + if (slave.weight >= 11) { bodySize = "Fat"; - else if (slave.weight > -31) + } else if (slave.weight > -31) { bodySize = "_Chubby"; + } } else if (slave.waist >= 41) { - if (slave.weight >= 31) + if (slave.weight >= 31) { bodySize = "Fat"; - else if (slave.weight >= 0) + } else if (slave.weight >= 0) { bodySize = "_Chubby"; + } } else if (slave.waist >= 11) { - if (slave.weight >= 96) + if (slave.weight >= 96) { bodySize = "Fat"; - else if (slave.weight >= 11) + } else if (slave.weight >= 11) { bodySize = "_Chubby"; + } } else if (slave.waist > -11) { - if (slave.weight >= 131) + if (slave.weight >= 131) { bodySize = "Fat"; - else if (slave.weight >= 31) + } else if (slave.weight >= 31) { bodySize = "_Chubby"; + } } else if (slave.waist > -41) { - if (slave.weight >= 161) + if (slave.weight >= 161) { bodySize = "Fat"; - else if (slave.weight >= 96) + } else if (slave.weight >= 96) { bodySize = "_Chubby"; + } } else if (slave.waist > -96) { - if (slave.weight >= 191) + if (slave.weight >= 191) { bodySize = "Fat"; - else if (slave.weight >= 131) + } else if (slave.weight >= 131) { bodySize = "_Chubby"; + } } else { - if (slave.weight >= 31) + if (slave.weight >= 31) { bodySize = "_Chubby"; + } } if (slave.chastityAnus === 1) { @@ -1097,7 +1150,7 @@ window.VectorArt = (function() { } } if (slave.vaginalAccessory !== "none") { - switch (slave.clothes) {/* shows vaginal accessories on the outfits below */ + switch (slave.clothes) { /* shows vaginal accessories on the outfits below */ case "a bra": case "a button-up shirt": case "a button-up shirt and panties": @@ -1149,17 +1202,18 @@ window.VectorArt = (function() { } else if (slave.vaginalAccessory === "long dildo") { r += jsInclude("Art_Vector_Dildo_Long"); } else if (slave.clothes !== "a comfortable bodysuit" && slave.clothes !== "a string bikini" && slave.clothes !== "attractive lingerie for a pregnant woman" && slave.clothes !== "restrictive latex") { - if (slave.vaginalAccessory === "large dildo") /* additional outfits disabled due to the art breaking with the larger accessories */ + if (slave.vaginalAccessory === "large dildo") { /* additional outfits disabled due to the art breaking with the larger accessories */ r += jsInclude("Art_Vector_Dildo_Large"); - else if (slave.vaginalAccessory === "long, large dildo") + } else if (slave.vaginalAccessory === "long, large dildo") { r += jsInclude("Art_Vector_Dildo_Large_Long"); - else if (slave.vaginalAccessory === "huge dildo") + } else if (slave.vaginalAccessory === "huge dildo") { r += jsInclude("Art_Vector_Dildo_Huge"); - else if (slave.vaginalAccessory === "long, huge dildo") + } else if (slave.vaginalAccessory === "long, huge dildo") { r += jsInclude("Art_Vector_Dildo_Huge_Long"); - }/* else if (slave.vaginalAccessory === "bullet vibrator" || slave.vaginalAccessory === "smart bullet vibrator") { + } + } /* else if (slave.vaginalAccessory === "bullet vibrator" || slave.vaginalAccessory === "smart bullet vibrator") { r += jsInclude("Art_Vector_Bullet_Vibrator"); - } */ + } */ } } } @@ -1178,16 +1232,18 @@ window.VectorArt = (function() { function setOutfitColor() { /* TODO: rewrite all textual descriptions not to explicitly mention the latex being of black color. */ - if (wearingLatex === true || slave.clothes === "a cybersuit") + if (wearingLatex === true || slave.clothes === "a cybersuit") { outfitBaseColour = slave.clothingBaseColor || "#515351"; /* use custom color, or use default latex color */ - else if (slave.clothes === "a comfortable bodysuit") + } else if (slave.clothes === "a comfortable bodysuit") { outfitBaseColour = slave.clothingBaseColor || "#464646"; /* use custom color, or use default bodysuit color */ + } /* head addons */ - if (slave.collar === "porcelain mask") + if (slave.collar === "porcelain mask") { T.glassesColor = slave.glassesColor || "#FFFFFF"; /* use custom color or white */ - else + } else { T.glassesColor = slave.glassesColor || "#010101"; /* use custom color or default */ + } T.eyeColor = extractColor(slave.eyeColor, 1); T.outfitBaseColour = outfitBaseColour; @@ -1201,7 +1257,7 @@ window.VectorArt = (function() { T.bellybuttonStyle = colorSlave.areolaColor; T.labiaStyle = colorSlave.labiaColor; T.skinColour = colorSlave.skinColor; - /* todo: introduce fleshStyle */ + /* TODO: introduce fleshStyle */ /* these need to be declared so they can be set conditionally */ T.headSkinStyle = undefined; T.torsoSkinStyle = undefined; @@ -1217,18 +1273,19 @@ window.VectorArt = (function() { T.areolaStyle = "fill:rgba(81,83,81,1);"; T.labiaStyle = T.areolaStyle; T.bellybuttonStyle = T.areolaStyle; - } else if (slave.clothes === "restrictive latex") { /* slave wears restrictive latex - display most skin as if it was rubber */ + } else if (slave.clothes === "restrictive latex") { + /* slave wears restrictive latex - display most skin as if it was rubber */ /* nice latex does not cover any privates. */ - T.boobSkinStyle = "fill:"+T.skinColour+";"; - T.penisSkinStyle = "fill:"+T.skinColour+";"; - T.scrotumSkinStyle = "fill:"+T.skinColour+";"; - T.torsoSkinStyle = "fill:"+T.skinColour+";"; + T.boobSkinStyle = "fill:" + T.skinColour + ";"; + T.penisSkinStyle = "fill:" + T.skinColour + ";"; + T.scrotumSkinStyle = "fill:" + T.skinColour + ";"; + T.torsoSkinStyle = "fill:" + T.skinColour + ";"; /* rest of body is covered in latex */ T.skinColour = outfitBaseColour; T.bellybuttonStyle = outfitBaseColour; } else if (slave.clothes === "a latex catsuit") { /* nice latex does not cover head. */ - T.headSkinStyle = "fill:"+T.skinColour+";"; + T.headSkinStyle = "fill:" + T.skinColour + ";"; /* rest of body is covered in latex */ T.skinColour = outfitBaseColour; /* catsuit covers areolae and crotch, too */ @@ -1239,7 +1296,7 @@ window.VectorArt = (function() { T.bellybuttonStyle = outfitBaseColour; } else if (slave.clothes === "a comfortable bodysuit") { /* nice bodysuit does not cover head. */ - T.headSkinStyle = "fill:"+T.skinColour+";"; + T.headSkinStyle = "fill:" + T.skinColour + ";"; /* rest of body is covered in bodysuit */ T.skinColour = outfitBaseColour; T.bellySkinStyle = outfitBaseColour; @@ -1543,23 +1600,24 @@ window.VectorArt = (function() { /* override color in case of full body latex outfit, or custom color*/ if (slave.clothes === "a Fuckdoll suit" || slave.clothes === "restrictive latex") { T.shoeColour = T.skinColour; - T.shoeShadowColour = T.shoeColour+";opacity: 0.5"; /* TODO: do not abuse "color" variable for style definitions. do not rely on dark background for shadow effect either. */ + T.shoeShadowColour = T.shoeColour + ";opacity: 0.5"; /* TODO: do not abuse "color" variable for style definitions. do not rely on dark background for shadow effect either. */ } else if (slave.shoeColor !== undefined) { - T.shoeColour = slave.shoeColor+";opacity: 0.4"; /* shoe color selected by user */ - T.shoeShadowColour = T.shoeColour+";opacity: 0.5"; /* TODO: do not abuse "color" variable for style definitions. do not rely on dark background for shadow effect either. */ + T.shoeColour = slave.shoeColor + ";opacity: 0.4"; /* shoe color selected by user */ + T.shoeShadowColour = T.shoeColour + ";opacity: 0.5"; /* TODO: do not abuse "color" variable for style definitions. do not rely on dark background for shadow effect either. */ } else { T.shoeShadowColour = "#616a6b"; - if (slave.shoes === "none") + if (slave.shoes === "none") { T.shoeColour = "#595959"; - else + } else { T.shoeColour = "#80808080"; + } } } } function ArtVectorCollar() { r += jsInclude("Art_Vector_Clavicle"); - /* TODO": find out where "uncomfortable leather" collar art went */ + /* TODO: find out where "uncomfortable leather" collar art went */ switch (slave.collar) { case "leather with cowbell": r += jsInclude("Art_Vector_Collar_Cowbell"); @@ -1607,37 +1665,39 @@ window.VectorArt = (function() { function ArtVectorFeet() { let outfit, stockings; - if (slave.legAccessory === "short stockings") + if (slave.legAccessory === "short stockings") { stockings = "SS"; - else if (slave.legAccessory === "long stockings") + } else if (slave.legAccessory === "long stockings") { stockings = "LL"; + } /* Updated 2018-10-25 by Fr0g */ /* - added brackets to make boolean logic run */ if (slave.shoes === "heels") { r += jsInclude("Art_Vector_Shoes_Heel"); } else if (slave.shoes === "pumps") { - r += jsInclude("Art_Vector_Shoes_Pump"); + r += jsInclude("Art_Vector_Shoes_Pump"); } else if (slave.shoes === "extreme heels") { - r += jsInclude(`Art_Vector_Shoes_Extreme_Heel_${legSize}`); + r += jsInclude(`Art_Vector_Shoes_Extreme_Heel_${legSize}`); } else if (slave.shoes === "boots") { - r += jsInclude(`Art_Vector_Shoes_Boot_${legSize}`); + r += jsInclude(`Art_Vector_Shoes_Boot_${legSize}`); } else if (slave.shoes === "flats") { - r += jsInclude("Art_Vector_Shoes_Flat"); + r += jsInclude("Art_Vector_Shoes_Flat"); } else { if (slave.amp === 0) { r += jsInclude("Art_Vector_Feet_Normal"); } else if (slave.PLimb === 1 || slave.PLimb === 2) { - if (slave.amp === -1) + if (slave.amp === -1) { r += jsInclude("Art_Vector_Feet_ProstheticBasic"); - else if (slave.amp === -2) + } else if (slave.amp === -2) { r += jsInclude("Art_Vector_Feet_ProstheticSexy"); - else if (slave.amp === -3) + } else if (slave.amp === -3) { r += jsInclude("Art_Vector_Feet_ProstheticBeauty"); - else if (slave.amp === -4) + } else if (slave.amp === -4) { r += jsInclude("Art_Vector_Feet_ProstheticCombat"); - else if (slave.amp === -5) + } else if (slave.amp === -5) { r += jsInclude("Art_Vector_Feet_ProstheticSwiss"); + } } } if (stockings !== undefined && slave.amp !== 1) { @@ -1701,21 +1761,25 @@ window.VectorArt = (function() { case "a latex catsuit": case "body oil": case "restrictive latex": - if (V.seeVectorArtHighlights === 1) /* special case for shiny clothing */ + if (V.seeVectorArtHighlights === 1) { /* special case for shiny clothing */ outfit = "Shine"; + } break; default: outfit = clothing2artSuffix(slave.clothes); } if (outfit !== undefined) { if (slave.amp !== 1) { - if (slave.clothes !== "a slutty qipao" && slave.clothes !== "harem gauze" && slave.clothes !== "slutty jewelry" && slave.clothes !== "Western clothing") /* these clothes have a stump/leg outfit, but no butt outfit */ + if (slave.clothes !== "a slutty qipao" && slave.clothes !== "harem gauze" && slave.clothes !== "slutty jewelry" && slave.clothes !== "Western clothing") { /* these clothes have a stump/leg outfit, but no butt outfit */ r += jsInclude(`Art_Vector_Butt_Outfit_${outfit}_${buttSize}`); - if (slave.clothes !== "a schoolgirl outfit") /* file is there, but contains no artwork */ + } + if (slave.clothes !== "a schoolgirl outfit") { /* file is there, but contains no artwork */ r += jsInclude(`Art_Vector_Leg_Outfit_${outfit}_${legSize}`); + } } else { - if (outfit === "Shine") /* the only stump outfit that does not draw an empty svg */ + if (outfit === "Shine") { /* the only stump outfit that does not draw an empty svg */ r += jsInclude(`Art_Vector_Leg_Outfit_${outfit}_Stump`); + } } } } @@ -1757,10 +1821,11 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Hair_Back_NoHair"); break; case "afro": - if (slave.hLength >= 150) + if (slave.hLength >= 150) { r += jsInclude("Art_Vector_Hair_Back_Afro_Giant"); - else + } else { r += jsInclude(`Art_Vector_Hair_Back_Afro_${hairLength}`); + } break; case "messy bun": r += jsInclude(`Art_Vector_Hair_Back_Ninja_${hairLength}`); @@ -1790,8 +1855,9 @@ window.VectorArt = (function() { } } /* note: latex clothing actually shows some hair, but there is no appropriate art for it */ - if (slave.collar === "cat ears") + if (slave.collar === "cat ears") { r += jsInclude("Art_Vector_Cat_Ear_Back"); + } } function ArtVectorHairFore() { @@ -1831,10 +1897,11 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Hair_Fore_NoHair"); break; case "afro": - if (slave.hLength >= 150) + if (slave.hLength >= 150) { r += jsInclude("Art_Vector_Hair_Fore_Afro_Giant"); - else + } else { r += jsInclude(`Art_Vector_Hair_Fore_Afro_${hairLength}`); + } break; case "messy bun": r += jsInclude(`Art_Vector_Hair_Fore_Ninja_${hairLength}`); @@ -1864,8 +1931,9 @@ window.VectorArt = (function() { } } /* note: latex clothing actually shows some hair, but there is no appropriate art for it */ - if (slave.collar === "cat ears") + if (slave.collar === "cat ears") { r += jsInclude("Art_Vector_Cat_Ear_Fore"); + } } function ArtVectorHead() { @@ -1875,20 +1943,22 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Head"); /* shiny clothing */ if (V.seeVectorArtHighlights === 1) { - if (wearingLatex === true) + if (wearingLatex === true) { r += jsInclude("Art_Vector_Head_Outfit_Shine"); + } } if (slave.clothes !== "restrictive latex") { - if (slave.markings === "beauty mark") + if (slave.markings === "beauty mark") { r += jsInclude("Art_Vector_Beauty_Mark"); - else if (slave.markings === "freckles") + } else if (slave.markings === "freckles") { r += jsInclude("Art_Vector_Freckles"); - else if (slave.markings === "heavily freckled") + } else if (slave.markings === "heavily freckled") { r += jsInclude("Art_Vector_Freckles_Heavy"); - else if (slave.markings === "birthmark") + } else if (slave.markings === "birthmark") { r += jsInclude("Art_Vector_Birthmark"); - else if (slave.minorInjury === "black eye") + } else if (slave.minorInjury === "black eye") { r += jsInclude("Art_Vector_Black_Eye"); + } } /* FACIAL APPEARANCE */ if (V.seeFaces === 1) { @@ -1900,38 +1970,44 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeD"); r += jsInclude("Art_Vector_Mouth_TypeF"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } break; case "asian": @@ -1941,40 +2017,46 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeD"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeB"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (slave.eyebrowFullness === "pencil-thin") + if (slave.eyebrowFullness === "pencil-thin") { r += jsInclude("Art_Vector_Eyebrow_TypeC_Pencilthin"); - else if (hasEyebrows === true) + } else if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } break; case "amerindian": @@ -1983,38 +2065,44 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeB_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeB"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeF"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeB"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } break; case "black": @@ -2022,40 +2110,46 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeD"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeF"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeB"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (slave.eyebrowFullness === "natural") + if (slave.eyebrowFullness === "natural") { r += jsInclude("Art_Vector_Eyebrow_TypeB_Natural"); - else if (hasEyebrows === true) + } else if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeF"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } break; case "middle eastern": @@ -2063,38 +2157,44 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeD"); r += jsInclude("Art_Vector_Mouth_TypeF"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeB_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeF"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } break; case "semitic": @@ -2102,38 +2202,44 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeD"); r += jsInclude("Art_Vector_Mouth_TypeF"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeB_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeF"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } break; case "indo-aryan": @@ -2141,38 +2247,44 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeF"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } break; case "mixed race": @@ -2180,38 +2292,44 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeF"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeD"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeD_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } break; default: @@ -2219,74 +2337,85 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeA"); r += jsInclude("Art_Vector_Nose_TypeA"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "masculine") { r += jsInclude("Art_Vector_Eyes_TypeD"); r += jsInclude("Art_Vector_Mouth_TypeF"); r += jsInclude("Art_Vector_Nose_TypeF"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeE_${eyebrowFullness}`); + } } else if (slave.faceShape === "androgynous") { r += jsInclude("Art_Vector_Eyes_TypeE"); r += jsInclude("Art_Vector_Mouth_TypeE"); r += jsInclude("Art_Vector_Nose_TypeE"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeF_${eyebrowFullness}`); + } } else if (slave.faceShape === "cute") { r += jsInclude("Art_Vector_Eyes_TypeB"); r += jsInclude("Art_Vector_Mouth_TypeB"); r += jsInclude("Art_Vector_Nose_TypeD"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeA_${eyebrowFullness}`); + } } else if (slave.faceShape === "sensual") { r += jsInclude("Art_Vector_Eyes_TypeC"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } else if (slave.faceShape === "exotic") { r += jsInclude("Art_Vector_Eyes_TypeA"); r += jsInclude("Art_Vector_Mouth_TypeC"); r += jsInclude("Art_Vector_Nose_TypeC"); - if (hasEyebrows === true) + if (hasEyebrows === true) { r += jsInclude(`Art_Vector_Eyebrow_TypeC_${eyebrowFullness}`); + } } } } } /* END FACIAL APPEARANCE */ - if (slave.eyebrowPiercing === 1) + if (slave.eyebrowPiercing === 1) { r += jsInclude("Art_Vector_Eyebrow_Light"); - else if (slave.eyebrowPiercing === 2) + } else if (slave.eyebrowPiercing === 2) { r += jsInclude("Art_Vector_Eyebrow_Heavy"); + } - if (slave.nosePiercing === 1) + if (slave.nosePiercing === 1) { r += jsInclude("Art_Vector_Nose_Light"); - else if (slave.nosePiercing === 2) + } else if (slave.nosePiercing === 2) { r += jsInclude("Art_Vector_Nose_Heavy"); + } - if (slave.lipsPiercing === 1) + if (slave.lipsPiercing === 1) { r += jsInclude("Art_Vector_Lip_Light"); - else if (slave.lipsPiercing === 2) + } else if (slave.lipsPiercing === 2) { r += jsInclude("Art_Vector_Lip_Heavy"); + } /* ADDONS */ if (slave.fuckdoll === 0) { /* Fuckdolls cannot be decorated */ - if (slave.collar === "dildo gag") + if (slave.collar === "dildo gag") { r += jsInclude("Art_Vector_Dildo_Gag"); - else if (slave.collar === "ball gag") + } else if (slave.collar === "ball gag") { r += jsInclude("Art_Vector_Ball_Gag"); - else if (slave.collar === "bit gag") + } else if (slave.collar === "bit gag") { r += jsInclude("Art_Vector_Bit_Gag"); - else if (slave.collar === "massive dildo gag") + } else if (slave.collar === "massive dildo gag") { r += jsInclude("Art_Vector_Massive_Dildo_Gag"); - else if (slave.collar === "porcelain mask") + } else if (slave.collar === "porcelain mask") { r += jsInclude("Art_Vector_Porcelain_Mask"); + } - if (slave.eyewear === "corrective glasses" || slave.eyewear === "glasses" || slave.eyewear === "blurring glasses") + if (slave.eyewear === "corrective glasses" || slave.eyewear === "glasses" || slave.eyewear === "blurring glasses") { r += jsInclude("Art_Vector_Glasses"); + } /* head clothing */ switch (slave.clothes) { @@ -2329,37 +2458,40 @@ window.VectorArt = (function() { /* Selection of matching SVG based on amputee level */ if (slave.amp === 0) { r += jsInclude(`Art_Vector_Leg_${legSize}`); - if (slave.muscles >= 97) + if (slave.muscles >= 97) { r += jsInclude(`Art_Vector_Leg_${legSize}_MHeavy`); - else if (slave.muscles >= 62) + } else if (slave.muscles >= 62) { r += jsInclude(`Art_Vector_Leg_${legSize}_MMedium`); - else if (slave.muscles >= 30) + } else if (slave.muscles >= 30) { r += jsInclude(`Art_Vector_Leg_${legSize}_MLight`); + } } else if (slave.amp === 1) { r += jsInclude("Art_Vector_Stump"); } else if (slave.PLimb === 1 || slave.PLimb === 2) { /* slave is an amputee and has PLimbs equipped */ - if (slave.amp === -1) + if (slave.amp === -1) { r += jsInclude(`Art_Vector_Leg_ProstheticBasic_${legSize}`); - else if (slave.amp === -2) + } else if (slave.amp === -2) { r += jsInclude(`Art_Vector_Leg_ProstheticSexy_${legSize}`); - else if (slave.amp === -3) + } else if (slave.amp === -3) { r += jsInclude(`Art_Vector_Leg_ProstheticBeauty_${legSize}`); - else if (slave.amp === -4) + } else if (slave.amp === -4) { r += jsInclude(`Art_Vector_Leg_ProstheticCombat_${legSize}`); - else /* slave.amp === -5 */ + } else { /* slave.amp === -5 */ r += jsInclude(`Art_Vector_Leg_ProstheticSwiss_${legSize}`); + } } } function ArtVectorPubicHair() { if (slave.fuckdoll !== 0 || slave.clothes !== "a latex catsuit") { if (V.showBodyMods === 1 && slave.vaginaTat === "rude words") { - if (slave.dick !== 0) + if (slave.dick !== 0) { // eslint-disable-next-line camelcase T.art_pussy_tattoo_text = "Useless"; - else + } else { // eslint-disable-next-line camelcase T.art_pussy_tattoo_text = "Fucktoy"; + } r += jsInclude("Art_Vector_Pussy_Tattoo"); } if (slave.physicalAge < 11) { @@ -2368,8 +2500,9 @@ window.VectorArt = (function() { r += jsInclude("Art_Vector_Pubic_Hair_Underarm_None"); */ } else if (slave.physicalAge <= 13) { - if (slave.pubicHStyle !== "waxed") + if (slave.pubicHStyle !== "waxed") { r += jsInclude("Art_Vector_Pubic_Hair_Wispy"); + } } else if (slave.clothes !== "a comfortable bodysuit") { switch (slave.pubicHStyle) { case "bald": @@ -2381,34 +2514,39 @@ window.VectorArt = (function() { break; case "strip": case "in a strip": - if (torsoSize === "Obese" || torsoSize === "Fat") + if (torsoSize === "Obese" || torsoSize === "Fat") { r += jsInclude("Art_Vector_Pubic_Hair_StripFat"); - else + } else { r += jsInclude("Art_Vector_Pubic_Hair_Strip"); + } break; case "neat": - if (torsoSize === "Obese" || torsoSize === "Fat") + if (torsoSize === "Obese" || torsoSize === "Fat") { r += jsInclude("Art_Vector_Pubic_Hair_NeatFat"); - else + } else { r += jsInclude("Art_Vector_Pubic_Hair_Neat"); + } break; case "bushy in the front and neat in the rear": - if (torsoSize === "Obese" || torsoSize === "Fat") + if (torsoSize === "Obese" || torsoSize === "Fat") { r += jsInclude("Art_Vector_Pubic_Hair_BushFat"); - else + } else { r += jsInclude("Art_Vector_Pubic_Hair_Bush"); + } break; case "bushy": - if (torsoSize === "Obese" || torsoSize === "Fat") + if (torsoSize === "Obese" || torsoSize === "Fat") { r += jsInclude("Art_Vector_Pubic_Hair_BushyFat"); - else + } else { r += jsInclude("Art_Vector_Pubic_Hair_Bushy"); + } break; case "very bushy": - if (torsoSize === "Obese" || torsoSize === "Fat") + if (torsoSize === "Obese" || torsoSize === "Fat") { r += jsInclude("Art_Vector_Pubic_Hair_Very_BushyFat"); - else + } else { r += jsInclude("Art_Vector_Pubic_Hair_Very_Bushy"); + } } switch (slave.underArmHStyle) { case "hairless": @@ -2432,12 +2570,13 @@ window.VectorArt = (function() { } function ArtVectorPussy() { - if (slave.vagina >= 0 && slave.clothes !== "a latex catsuit" && slave.clothes !== "a comfortable bodysuit" && slave.clothes !== "a cybersuit") + if (slave.vagina >= 0 && slave.clothes !== "a latex catsuit" && slave.clothes !== "a comfortable bodysuit" && slave.clothes !== "a cybersuit") { r += jsInclude("Art_Vector_Pussy"); + } } function ArtVectorPussyPiercings() { - switch (slave.clothes) {/* piercings display on these clothes */ + switch (slave.clothes) { /* piercings display on these clothes */ case "a bra": case "a button-up shirt": case "a fallen nuns habit": @@ -2465,28 +2604,31 @@ window.VectorArt = (function() { case "uncomfortable straps": case "Western clothing": /* piercinglevel = 1, Light; piercinglevel = 2, Heavy; piercinglevel = 3, Smart; piercinglevel = 0, None */ - if (slave.vaginaPiercing === 1) + if (slave.vaginaPiercing === 1) { r += jsInclude("Art_Vector_Pussy_Piercing"); - else if (slave.vaginaPiercing === 2) + } else if (slave.vaginaPiercing === 2) { r += jsInclude("Art_Vector_Pussy_Piercing_Heavy"); + } - if (slave.clitPiercing === 1) + if (slave.clitPiercing === 1) { r += jsInclude("Art_Vector_Clit_Piercing"); - else if (slave.clitPiercing === 2) + } else if (slave.clitPiercing === 2) { r += jsInclude("Art_Vector_Clit_Piercing_Heavy"); - else if (slave.clitPiercing === 3) + } else if (slave.clitPiercing === 3) { r += jsInclude("Art_Vector_Clit_Piercing_Smart"); + } } } function ArtVectorTorso() { r += jsInclude(`Art_Vector_Torso_${torsoSize}`); - if (slave.muscles >= 97) + if (slave.muscles >= 97) { r += jsInclude(`Art_Vector_Torso_${torsoSize}_MHeavy`); - else if (slave.muscles >= 62) + } else if (slave.muscles >= 62) { r += jsInclude(`Art_Vector_Torso_${torsoSize}_MMedium`); - else if (slave.muscles >= 30) + } else if (slave.muscles >= 30) { r += jsInclude(`Art_Vector_Torso_${torsoSize}_MLight`); + } } function ArtVectorTorsoOutfit() { @@ -2517,10 +2659,12 @@ window.VectorArt = (function() { } if (V.seeVectorArtHighlights === 1) { if (wearingLatex === true) { - if (slave.amp !== 0) + if (slave.amp !== 0) { r += jsInclude("Art_Vector_Torso_Outfit_Shine_Shoulder"); - if (slave.preg <= 0) + } + if (slave.preg <= 0) { r += jsInclude(`Art_Vector_Torso_Outfit_Shine_${torsoSize}`); + } } } } @@ -2543,13 +2687,15 @@ window.LegacyVectorArt = function(slave, artSize) { let underArmFilter = `filter: url(#hair-${_.kebabCase(slave.underArmHColor)});`; let pubesFilter = `filter: url(#hair-${_.kebabCase(slave.pubicHColor)});`; - if (artSize === 1) + if (artSize === 1) { r += `<img class='paperdoll' src=${filePath}/test ui.svg'/`; + } - if (slave.custom.hairVector) + if (slave.custom.hairVector) { hairStyle = slave.custom.hairVector; - else + } else { hairStyle = (["afro", "braided", "bun", "buzzcut", "dreadlocks", "eary", "luxurious", "messy", "neat", "ponytail", "strip", "tails", "trimmed", "up"].includes(slave.hStyle) ? slave.hStyle : "neat"); + } underArmHStyle = slave.underArmHStyle; @@ -2576,15 +2722,17 @@ window.LegacyVectorArt = function(slave, artSize) { if (wearingLatex === false) { r += `<img class='paperdoll' src=${skinFilePath}/arm right ${rightArmType}.svg' style='${skinFilter}'>`; - if (slave.underArmHStyle === "bushy") + if (slave.underArmHStyle === "bushy") { r += `<img class='paperdoll' src=${filePath}/hair/underArm ${underArmHStyle} right.svg' style='{underArmFilter}'/>`; + } } else { - if (slave.fuckdoll !== 0) + if (slave.fuckdoll !== 0) { rightArmType = "mid"; + } r += `<img class='paperdoll' src=${filePath}/outfit/arm right ${rightArmType} latex.svg'/>`; } } else if (wearingLatex === false && slave.underArmHStyle === "bushy") { - r += `<img class='paperdoll' src=${filePath}/hair/underArm ${underArmHStyle} right.svg' style='{underArmFilter}'/>`; + r += `<img class='paperdoll' src=${filePath}/hair/underArm ${underArmHStyle} right.svg' style='{underArmFilter}'/>`; } /* Hair Aft */ @@ -2601,115 +2749,132 @@ window.LegacyVectorArt = function(slave, artSize) { } /* Tailed Plug */ - if (slave.buttplugAttachment === "tail") + if (slave.buttplugAttachment === "tail") { r += `<img class='paperdoll' src=${filePath}/outfit/tail plug.svg' style='${hairFilter}'/>`; + } /* Butt */ if (slave.amp !== 1) { - if (slave.butt > 6) + if (slave.butt > 6) { buttSize = 3; - else if (slave.butt > 4) + } else if (slave.butt > 4) { buttSize = 2; - else if (slave.butt > 2) + } else if (slave.butt > 2) { buttSize = 1; - else + } else { buttSize = 0; + } - if (wearingLatex === true) + if (wearingLatex === true) { r += `<img class='paperdoll' src=${filePath}/outfit/butt ${buttSize} latex.svg' style='${skinFilter}'>`; - else + } else { r += `<img class='paperdoll' src=${skinFilePath}/butt ${buttSize}.svg' style='${skinFilter}'>`; + } } /* Leg + 1 size up when chubby or fat */ if (slave.hips < 0) { - if (slave.weight > 95) /* Chubby */ + if (slave.weight > 95) { /* Chubby */ legSize = "normal"; - else + } else { legSize = "narrow"; + } } else if (slave.hips === 0) { - if (slave.weight > 95) /* Chubby */ + if (slave.weight > 95) { /* Chubby */ legSize = "wide"; - else + } else { legSize = "normal"; + } } else { legSize = "wide"; } - if (slave.amp === 1) + if (slave.amp === 1) { legSize = "stump " + legSize; + } - if (wearingLatex === true && slave.amp !== 1) + if (wearingLatex === true && slave.amp !== 1) { r += `<img class='paperdoll' src=${filePath}/outfit/leg ${legSize} latex.svg'/>`; - else + } else { r += `<img class='paperdoll' src=${skinFilePath}/leg ${legSize}.svg' style='${skinFilter}'>`; + } /* Feet */ if (slave.amp !== 1) { if (slave.shoes === "heels") { shoesType = "heel"; } else if (slave.shoes === "extreme heels") { - if (slave.weight > 95 ) /* Chubby */ + if (slave.weight > 95) { /* Chubby */ shoesType = "extreme heel wide"; - else + } else { shoesType = "extreme heel"; + } } else if (slave.shoes === "boots") { - if (slave.weight > 95) /* Chubby */ + if (slave.weight > 95) { /* Chubby */ shoesType = "boot wide"; - else + } else { shoesType = "boot"; + } } else if (slave.shoes === "flats") { shoesType = "flat"; } else { r += `<img class='paperdoll' src=${skinFilePath}/feet.svg' style='${skinFilter}'>`; } if (slave.shoes === "extreme heels" || slave.shoes === "boots") { - if (wearingLatex === true) + if (wearingLatex === true) { r += `<img class='paperdoll' src=${filePath}/outfit/${shoesType} latex.svg'/>`; - else + } else { r += `<img class='paperdoll' src=${filePath}/outfit/${shoesType}.svg'/>`; + } } else if (slave.shoes === "heels" || slave.shoes === "flats") { - if (wearingLatex === true) + if (wearingLatex === true) { r += `<img class='paperdoll' src=${filePath}/outfit/${shoesType} latex.svg'/>`; - else + } else { r += `<img class='paperdoll' src=${skinFilePath}/${shoesType}.svg' style='${skinFilter}'>`; + } } } /* Torso */ if (slave.waist < -40) { - if (slave.weight > 30) + if (slave.weight > 30) { torsoSize = "Hourglass"; - else + } else { torsoSize = "Unnatural"; + } } else if (slave.waist <= 10) { - if (slave.weight > 30) + if (slave.weight > 30) { torsoSize = "Normal"; - else + } else { torsoSize = "Hourglass"; + } } else { torsoSize = "Normal"; } r += `<img class='paperdoll' src=${skinFilePath}/torso ${torsoSize}.svg' style='${skinFilter}'>`; - if (wearingLatex === true) + if (wearingLatex === true) { r += `<img class='paperdoll' src=${filePath}/outfit/torso ${torsoSize} latex.svg'/>`; - else if (slave.clothes === "uncomfortable straps") + } else if (slave.clothes === "uncomfortable straps") { r += `<img class='paperdoll' src=${filePath}/outfit/torso ${torsoSize} straps.svg'/>`; + } if (slave.amp !== 1) { if (wearingLatex === false) { if (leftArmType === "high") { r += `<img class='paperdoll' src=${skinFilePath}/arm left ${leftArmType}.svg' style='${skinFilter}'>`; - if (slave.underArmHStyle === "bushy") + if (slave.underArmHStyle === "bushy") { r += `<img class='paperdoll' src=${filePath}/hair/underArm ${underArmHStyle} left.svg' style='${underArmFilter}'/>`; + } } else { - if (slave.underArmHStyle === "bushy") + if (slave.underArmHStyle === "bushy") { r += `<img class='paperdoll' src=${filePath}/hair/underArm ${underArmHStyle} left.svg' style='${underArmFilter}'/>`; + } r += `<img class='paperdoll' src=${skinFilePath}/arm left ${leftArmType}.svg' style='${skinFilter}'>`; } r += `<img class='paperdoll' src=${skinFilePath}/arm left ${leftArmType}.svg' style='${skinFilter}'>`; } else { - if (slave.fuckdoll !== 0) + if (slave.fuckdoll !== 0) { leftArmType = "mid"; + } r += `<img class='paperdoll' src=${filePath}/outfit/arm left ${leftArmType} latex.svg'/>`; } } else if (wearingLatex === false && slave.underArmHStyle === "bushy") { @@ -2719,17 +2884,19 @@ window.LegacyVectorArt = function(slave, artSize) { /* Vagina */ if (slave.vagina >= 0) { r += `<img class='paperdoll' src=${skinFilePath}/vagina.svg' style='${skinFilter}'>`; - if (slave.clitPiercing === 1) + if (slave.clitPiercing === 1) { r += `<img class='paperdoll' src=${filePath}/body/addon/clit piercing.svg'/>`; - else if (slave.clitPiercing === 2) + } else if (slave.clitPiercing === 2) { r += `<img class='paperdoll' src=${filePath}/body/addon/clit piercing heavy.svg'/>`; - else if (slave.clitPiercing === 3) + } else if (slave.clitPiercing === 3) { r += `<img class='paperdoll' src=${filePath}/body/addon/clit piercing smart.svg'/>`; + } - if (slave.vaginaPiercing === 1) + if (slave.vaginaPiercing === 1) { r += `<img class='paperdoll' src=${filePath}/body/addon/pussy piercing.svg'/>`; - else if (slave.vaginaPiercing === 2) + } else if (slave.vaginaPiercing === 2) { r += `<img class='paperdoll' src=${filePath}/body/addon/pussy piercing heavy.svg'/>`; + } } /* Collar */ @@ -2750,21 +2917,25 @@ window.LegacyVectorArt = function(slave, artSize) { } /* Head base image */ - if (wearingLatex === true) + if (wearingLatex === true) { r += `<img class='paperdoll' src=${filePath}/outfit/head latex.svg'/>`; - else + } else { r += `<img class='paperdoll' src=${skinFilePath}/head.svg' style='${skinFilter}'>`; + } /* Glasses */ - if (slave.eyewear === "corrective glasses" || slave.eyewear === "glasses" || slave.eyewear === "blurring glasses") + if (slave.eyewear === "corrective glasses" || slave.eyewear === "glasses" || slave.eyewear === "blurring glasses") { r += `<img class='paperdoll' src=${filePath}/outfit/glasses.svg'/>`; + } /* Chastity belt or Pubic hair */ if (slave.chastityPenis === 1 || slave.chastityVagina === 1 || slave.chastityAnus === 1) { - if (slave.chastityPenis === 1) + if (slave.chastityPenis === 1) { r += `<img class='paperdoll' src=${filePath}/outfit/chastity male aft.svg'/>`; - if (slave.chastityVagina === 1) + } + if (slave.chastityVagina === 1) { r += `<img class='paperdoll' src=${filePath}/outfit/chastity female.svg'/>`; + } r += `<img class='paperdoll' src=${filePath}/outfit/chastity base.svg'/>`; } else if (slave.pubicHStyle !== "waxed" && slave.pubicHStyle !== "bald" && slave.pubicHStyle !== "hairless") { let pubicHStyle = (slave.pubicHStyle === "in a strip" ? "strip" : slave.pubicHStyle); @@ -2774,10 +2945,12 @@ window.LegacyVectorArt = function(slave, artSize) { /* if pregnant or has a belly */ if (slave.belly >= 5000) { r += `<img class='paperdoll' src=${skinFilePath}/preg belly 5000.svg' style='${skinFilter}'>`; - if (slave.navelPiercing >= 1) /* Navel Piercing*/ + if (slave.navelPiercing >= 1) { /* Navel Piercing*/ r += `<img class='paperdoll' src=${filePath}/body/addon/preg navel piercing.svg'/>`; - if (slave.navelPiercing === 2) + } + if (slave.navelPiercing === 2) { r += `<img class='paperdoll' src=${filePath}/body/addon/preg navel piercing heavy.svg'/>`; + } } else if (slave.belly <= -100) { /* condition is currently reversed until the vector can be fixed */ r += `<img class='paperdoll' src=${skinFilePath}/preg belly 100.svg' style='${skinFilter}'>`; /* @@ -2787,60 +2960,65 @@ window.LegacyVectorArt = function(slave, artSize) { r += `<img class='paperdoll' src=${filePath}/body/addon/preg navel piercing heavy.svg'/>`; */ } else { - if (slave.navelPiercing >= 1) /* Navel Piercing*/ + if (slave.navelPiercing >= 1) { /* Navel Piercing*/ r += `<img class='paperdoll' src=${filePath}/body/addon/navel piercing.svg'/>`; - if (slave.navelPiercing === 2) + } + if (slave.navelPiercing === 2) { r += `<img class='paperdoll' src=${filePath}/body/addon/navel piercing heavy.svg'/>`; + } } /* Boob */ - if (slave.boobs < 300) + if (slave.boobs < 300) { boobSize = 0; - else if (slave.boobs < 500) + } else if (slave.boobs < 500) { boobSize = 1; - else if (slave.boobs < 800) + } else if (slave.boobs < 800) { boobSize = 2; - else if (slave.boobs < 1600) + } else if (slave.boobs < 1600) { boobSize = 3; - else if (slave.boobs < 3200) + } else if (slave.boobs < 3200) { boobSize = 4; - else if (slave.boobs < 6400) + } else if (slave.boobs < 6400) { boobSize = 5; - else if (slave.boobs < 12000) + } else if (slave.boobs < 12000) { boobSize = 6; - else + } else { boobSize = 7; + } /* Scrotum */ if (slave.scrotum > 0) { - if (slave.scrotum >= 6) + if (slave.scrotum >= 6) { ballSize = 4; - else if (slave.scrotum >= 4) + } else if (slave.scrotum >= 4) { ballSize = 3; - else if (slave.scrotum >= 3) + } else if (slave.scrotum >= 3) { ballSize = 2; - else if (slave.scrotum >= 2) + } else if (slave.scrotum >= 2) { ballSize = 1; - else + } else { ballSize = 0; + } } /* Penis */ if (slave.dick > 0) { - if (slave.dick >= 8) + if (slave.dick >= 8) { penisSize = 6; - else if (slave.dick >= 7) + } else if (slave.dick >= 7) { penisSize = 5; - else if (slave.dick >= 6) + } else if (slave.dick >= 6) { penisSize = 4; - else if (slave.dick >= 5) + } else if (slave.dick >= 5) { penisSize = 3; - else if (slave.dick >= 4) + } else if (slave.dick >= 4) { penisSize = 2; - else if (slave.dick >= 2) + } else if (slave.dick >= 2) { penisSize = 1; - else + } else { penisSize = 0; + } } /* Boob */ @@ -2850,15 +3028,17 @@ window.LegacyVectorArt = function(slave, artSize) { if (wearingLatex === true) { /* normal case: outfit hides boobs */ r += `<img class='paperdoll' src=${filePath}/outfit/boob ${boobSize} latex.svg'/>`; - if (slave.lactation > 0) + if (slave.lactation > 0) { r += `<img class='paperdoll' src=${skinFilePath}/boob ${boobSize} areola.svg' style='${skinFilter}'>`; + } } else { r += `<img class='paperdoll' src=${skinFilePath}/boob ${boobSize}.svg' style='${skinFilter}'>`; r += `<img class='paperdoll' src=${skinFilePath}/boob ${boobSize} areola.svg' style='${skinFilter}'>`; } /* special case: straps are actually dawn over the boobs */ - if (slave.clothes === "uncomfortable straps") + if (slave.clothes === "uncomfortable straps") { r += `<img class='paperdoll' src=${filePath}/outfit/boob ${boobSize} straps.svg'/>`; + } needBoobs = false; } @@ -2867,28 +3047,32 @@ window.LegacyVectorArt = function(slave, artSize) { if (slave.vagina > 0) { if (slave.dick > 0) { r += '<div class="highPenis">'; - if (slave.scrotum > 0) + if (slave.scrotum > 0) { r += `<img class='paperdoll' src=${skinFilePath}/ball ${ballSize}.svg' style='${skinFilter}'>`; + } if (canAchieveErection(slave)) { r += `<img class='paperdoll' src=${skinFilePath}/penis ${penisSize}.svg' style='${skinFilter}'>`; } else { r += `<img class='paperdoll' src=${skinFilePath}/flaccid ${penisSize}.svg' style='${skinFilter}'>`; - if (slave.chastityPenis === 1) + if (slave.chastityPenis === 1) { r += `<img class='paperdoll' src=${filePath}/outfit/chastity male fore ${penisSize}.svg'/>`; + } } r += '</div>'; } } else { if (slave.dick > 0) { r += '<div class="lowPenis">'; - if (slave.scrotum > 0) + if (slave.scrotum > 0) { r += `<img class='paperdoll' src=${skinFilePath}/ball ${ballSize}.svg' style='${skinFilter}'>`; + } if (canAchieveErection(slave)) { r += `<img class='paperdoll' src=${skinFilePath}/penis ${penisSize}.svg' style='${skinFilter}'>`; } else { r += `<img class='paperdoll' src=${skinFilePath}/flaccid ${penisSize}.svg' style='${skinFilter}'>`; - if (slave.chastityPenis === 1) + if (slave.chastityPenis === 1) { r += `<img class='paperdoll' src=${filePath}/outfit/chastity male fore ${penisSize}.svg'/>`; + } } r += '</div>'; } @@ -2896,32 +3080,37 @@ window.LegacyVectorArt = function(slave, artSize) { if (needBoobs === true) { if (wearingLatex === true) { r += `<img class='paperdoll' src=${filePath}/outfit/boob ${boobSize} latex.svg'/>`; - if (slave.lactation > 0) + if (slave.lactation > 0) { r += `<img class='paperdoll' src=${skinFilePath}/boob ${boobSize} areola.svg' style='${skinFilter}'>`; + } } else { r += `<img class='paperdoll' src=${skinFilePath}/boob ${boobSize}.svg' style='${skinFilter}'>`; r += `<img class='paperdoll' src=${skinFilePath}/boob ${boobSize} areola.svg' style='${skinFilter}'>`; } /* special case: straps are actually dawn over the boobs */ - if (slave.clothes === "uncomfortable straps") + if (slave.clothes === "uncomfortable straps") { r += `<img class='paperdoll' src=${filePath}/outfit/boob ${boobSize} straps.svg'/>`; + } } /* piercings */ - if (slave.nipplesPiercing === 1) + if (slave.nipplesPiercing === 1) { r += `<img class='paperdoll' src=${filePath}/body/addon/boob ${boobSize} piercing.svg'/>`; - else if (slave.nipplesPiercing === 2) + } else if (slave.nipplesPiercing === 2) { r += `<img class='paperdoll' src=${filePath}/body/addon/boob ${boobSize} piercing heavy.svg'/>`; + } - if (slave.areolaePiercing === 1) + if (slave.areolaePiercing === 1) { r += `<img class='paperdoll' src=${filePath}/body/addon/boob ${boobSize} areola piercing.svg'/>`; + } /* clavicle */ r += `<img class='paperdoll' src=${filePath}/body/addon/clavicle.svg'/>`; /* Hair Foreground */ - if (slave.hStyle !== "shaved" && slave.fuckdoll === 0) + if (slave.hStyle !== "shaved" && slave.fuckdoll === 0) { r += `<img class='paperdoll' src=${filePath}/hair/${hairStyle} front.svg' style='${hairFilter}'/>`; + } return r; };