From 074423c30ae19567077d074cdc5bd8329ed8e8f4 Mon Sep 17 00:00:00 2001
From: DCoded <dsoloha@live.com>
Date: Sat, 4 May 2019 01:10:41 -0400
Subject: [PATCH] More comment formatting

---
 src/art/vector/VectorArtJS.js | 59 ++++++++++++++++++-----------------
 1 file changed, 31 insertions(+), 28 deletions(-)

diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js
index d03940eb80d..be2717dd131 100644
--- a/src/art/vector/VectorArtJS.js
+++ b/src/art/vector/VectorArtJS.js
@@ -39,8 +39,8 @@ window.VectorArt = (function() {
 		ArtVectorAnalAccessories();
 		ArtVectorButt();
 		ArtVectorLeg();
-		if (slave.amp !== 1) { /* includes shoes and leg outfits*/
-			ArtVectorFeet();
+		if (slave.amp !== 1) {
+			ArtVectorFeet(); /* includes shoes and leg outfits*/
 		}
 		ArtVectorTorso();
 		ArtVectorPussy();
@@ -267,7 +267,8 @@ window.VectorArt = (function() {
 			penisDrawtime = -1; /* no penis to draw */
 		} else if (State.variables.showClothingErection) {
 			penisDrawtime = 0; /* default is to draw before boobs/belly */
-			switch (slave.clothes) { /* BULGE OUTFITS WITH ERECTION: LONG OUTFITS */
+			switch (slave.clothes) {
+				/* BULGE OUTFITS WITH ERECTION: LONG OUTFITS */
 				case "an apron":
 				case "a ball gown":
 				case "a biyelgee costume":
@@ -396,7 +397,8 @@ window.VectorArt = (function() {
 			}
 		} else {
 			penisDrawtime = 0; /* default is to draw before boobs/belly */
-			switch (slave.clothes) { /* BULGE OUTFITS LONG+MEDIUM OUTFITS */
+			switch (slave.clothes) {
+				/* BULGE OUTFITS LONG+MEDIUM OUTFITS */
 				case "a ball gown":
 				case "a biyelgee costume":
 				case "a burkini":
@@ -663,8 +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) {
@@ -794,7 +795,8 @@ window.VectorArt = (function() {
 	}
 
 	function ArtVectorBelly() {
-		if (slave.belly >= 2000) { /* add pregnancy belly, scale dynamically (clothing and addons can be scaled, too) */
+		if (slave.belly >= 2000) {
+			/* add pregnancy belly, scale dynamically (clothing and addons can be scaled, too) */
 			/* TODO: add check in penis control. do not draw penis atop belly if _art_belly_scale_factor > 1. */
 			bellyScaleFactor = 0.300 * Math.log(0.011 * slave.belly) * heightScaleFactor;
 			artTranslationX = -262 * (bellyScaleFactor - 1);
@@ -900,7 +902,8 @@ window.VectorArt = (function() {
 	}
 
 	function ArtVectorBoob() {
-		if (slave.boobs < 300) { /* BEWARE: this threshold may be used in other art-related code, too */
+		if (slave.boobs < 300) {
+			/* BEWARE: this threshold may be used in other art-related code, too */
 			/* boobs too small - draw areolae directly onto torso */
 		} else {
 			r += jsInclude("Art_Vector_Boob_Alt");
@@ -975,7 +978,8 @@ window.VectorArt = (function() {
 	}
 
 	function ArtVectorBoobAddons() {
-		if (slave.boobs < 300) { /* boobs too small: do not show boob-related art */
+		if (slave.boobs < 300) {
+			/* boobs too small: do not show boob-related art */
 			/* BEWARE: this threshold should be kept in sync with the one in Art_Vector_Boob_ */
 		} else {
 			switch (slave.clothes) {
@@ -1004,7 +1008,7 @@ window.VectorArt = (function() {
 				case "sport shorts":
 				case "striped panties":
 					break; /* do nothing for these choices */
-					/* manually handle special cases */
+				/* manually handle special cases */
 				case "a slutty schutzstaffel uniform":
 					r += jsInclude("Art_Vector_Boob_Outfit_SchutzstaffelUniform");
 					break;
@@ -1016,7 +1020,8 @@ window.VectorArt = (function() {
 					r += jsInclude(`Art_Vector_Boob_Outfit_${clothing2artSuffix(slave.clothes)}`);
 			}
 		}
-		if (V.showBodyMods === 1 && (slave.nipplesPiercing > 0 || slave.areolaePiercing > 0)) { /* shows nipple piercings in game when selected; piercings will show on the outfits listed below */
+		if (V.showBodyMods === 1 && (slave.nipplesPiercing > 0 || slave.areolaePiercing > 0)) {
+			/* shows nipple piercings in game when selected; piercings will show on the outfits listed below */
 			switch (slave.clothes) {
 				case "a chattel habit":
 				case "a comfortable bodysuit":
@@ -1197,8 +1202,7 @@ 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") {
 							r += jsInclude("Art_Vector_Dildo_Large_Long");
@@ -1226,7 +1230,8 @@ window.VectorArt = (function() {
 		setHairColor();
 		setShoeColor();
 
-		function setOutfitColor() { /* TODO: rewrite all textual descriptions not to explicitly mention the latex being of black color. */
+		function setOutfitColor() {
+			/* TODO: rewrite all textual descriptions not to explicitly mention the latex being of black color. */
 			if (wearingLatex === true || slave.clothes === "a cybersuit") {
 				outfitBaseColour = slave.clothingBaseColor || "#515351";
 			} else if (slave.clothes === "a comfortable bodysuit") { /* use custom color, or use default latex color */
@@ -1235,10 +1240,10 @@ window.VectorArt = (function() {
 
 			/* head addons */
 			if (slave.collar === "porcelain mask") {
-				T.glassesColor = slave.glassesColor || "#FFFFFF";
-			} else { /* use custom color or white */
-				T.glassesColor = slave.glassesColor || "#010101";
-			} /* use custom color or default */
+				T.glassesColor = slave.glassesColor || "#FFFFFF"; /* use custom color or white */
+			} else {
+				T.glassesColor = slave.glassesColor || "#010101"; /* use custom color or default */
+			}
 
 			T.eyeColor = extractColor(slave.eyeColor, 1);
 			T.outfitBaseColour = outfitBaseColour;
@@ -1583,7 +1588,8 @@ window.VectorArt = (function() {
 			T.sclerae = extractColor(slave.sclerae);
 		}
 
-		function setShoeColor() { /* BEWARE: _shoeColour is read by Wardrobe Use */
+		function setShoeColor() {
+			/* BEWARE: _shoeColour is read by Wardrobe Use */
 			/* note: only heels use this _shoeShadowColour */
 
 			/* override color in case of full body latex outfit, or custom color*/
@@ -1760,17 +1766,14 @@ window.VectorArt = (function() {
 		}
 		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`);
 				}
 			}
@@ -2487,7 +2490,8 @@ window.VectorArt = (function() {
 				}
 				r += jsInclude("Art_Vector_Pussy_Tattoo");
 			}
-			if (slave.physicalAge < 11) { /* these art files exist, but draw empty svg's. Commented out for now to save on rendering time
+			if (slave.physicalAge < 11) {
+				/* these art files exist, but draw empty svg's. Commented out for now to save on rendering time
 				r += jsInclude("Art_Vector_Pubic_Hair_None");
 				r += jsInclude("Art_Vector_Pubic_Hair_Underarm_None");
 				*/
@@ -2943,8 +2947,7 @@ window.LegacyVectorArt = function(slave, artSize) {
 		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 */
+	} 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}'>`;
 		/*
 		if (slave.navelPiercing >= 1)/Navel Piercing/
-- 
GitLab