Parcourir la source

[fixed] Forgot to reset the pregnancy pics to the old version

anjuna krokus il y a 5 mois
Parent
commit
9feeb455fb
1 fichiers modifiés avec 52 ajouts et 31 suppressions
  1. 52 31
      locations/body_structure.qsrc

+ 52 - 31
locations/body_structure.qsrc

@@ -301,9 +301,10 @@ if $ARGS[0] = 'body_img':
 	if arrsize('ARGS') = 2: ARGS[2] = strenbuf
 	if arrsize('ARGS') = 3: ARGS[3] = PregChem
 
-	! =======      Pregnant       ======= !
-	if bdsetlock = 0 and (knowpreg = 1 or (preg = 1 and (thinkpreg = 1 or ARGS[3] > 3600))):
-		if 0:
+
+	if 1:
+		! =======      Pregnant       ======= !
+		if bdsetlock = 0 and (knowpreg = 1 or (preg = 1 and (thinkpreg = 1 or ARGS[3] > 3600))):
 			if ARGS[3] <= 2687:
 				$result = 'images/pc/body/shape/default_preg/0.jpg'
 			elseif ARGS[3] <= 6215:
@@ -311,37 +312,26 @@ if $ARGS[0] = 'body_img':
 			else
 				$result = 'images/pc/body/shape/default_preg/8.jpg'
 			end
-		else
-			if ARGS[3] <= 2687:
-				$result = 'images/pc/body/shape/preg/0/0.jpg'
-			elseif ARGS[3] <= 6215:
-				$result = 'images/pc/body/shape/preg/0/<<((ARGS[3] - 2184)/504)>>.jpg'
-			else
-				$result = 'images/pc/body/shape/preg/0/8.jpg'
-			end
+			exit
 		end
-		exit
-	end
 
+		bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
 
-	bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
-
-	if bdsetlock = 1:
-		if fixbodset = 0:
-			bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 2
-		elseif fixbodset = 1:
-			bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 6
-		elseif fixbodset = 2:
-			bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 8
-		else
-			$result = func('body_structure', 'custom_body_img', bs_temp_bs_class)
-			killvar 'bs_temp_bs_class'
-			exit
+		if bdsetlock = 1:
+			if fixbodset = 0:
+				bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 2
+			elseif fixbodset = 1:
+				bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 6
+			elseif fixbodset = 2:
+				bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 8
+			else
+				$result = func('body_structure', 'custom_body_img', bs_temp_bs_class)
+				killvar 'bs_temp_bs_class'
+				exit
+			end
 		end
-	end
 
-	$result = 'images/pc/body/shape/'
-	if 1:
+		$result = 'images/pc/body/shape/'
 		! =======      starving       ======= !
 		! -----           bmi < 16      ----- !
 		if bs_temp_bs_class <= 17:
@@ -427,7 +417,38 @@ if $ARGS[0] = 'body_img':
 			!$result = 'images/pc/body/shape/8.jpg'
 			$result += '7.jpg'
 		end
+
 	else
+		! =======      Pregnant       ======= !
+		if bdsetlock = 0 and (knowpreg = 1 or (preg = 1 and (thinkpreg = 1 or ARGS[3] > 3600))):
+			if ARGS[3] <= 2687:
+				$result = 'images/pc/body/shape/preg/0/0.jpg'
+			elseif ARGS[3] <= 6215:
+				$result = 'images/pc/body/shape/preg/0/<<((ARGS[3] - 2184)/504)>>.jpg'
+			else
+				$result = 'images/pc/body/shape/preg/0/8.jpg'
+			end
+			exit
+		end
+
+		bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
+
+		if bdsetlock = 1:
+			if fixbodset = 0:
+				bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 2
+			elseif fixbodset = 1:
+				bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 6
+			elseif fixbodset = 2:
+				bs_temp_bs_class = 100 * (bs_temp_bs_class / 100) + 8
+			else
+				$result = func('body_structure', 'custom_body_img', bs_temp_bs_class)
+				killvar 'bs_temp_bs_class'
+				exit
+			end
+		end
+
+		$result = 'images/pc/body/shape/'
+
 		bs_temp_bs_class = func('body_structure', 'Body_img_transform', bs_temp_bs_class)
 		gs 'body_structure', 'Body_img_totals'
 		if bs_temp_bs_class < 100:
@@ -538,7 +559,7 @@ if $ARGS[0] = 'body_desc':
 		$result = 'wiry'
 
 	! =======       slender       ======= !
-	! -----     19 <= bmi < 21      ----- !
+	! -----     19 <= bmi < 22      ----- !
 	elseif bs_temp_bs_class <= 205:
 		!	0 <= strenbuf <= 50
 		$result = 'slender'
@@ -550,7 +571,7 @@ if $ARGS[0] = 'body_desc':
 		$result = 'lean'
 
 	! =======       healthy       ======= !
-	! -----     21 <= bmi < 25      ----- !
+	! -----     22 <= bmi < 25      ----- !
 	elseif bs_temp_bs_class <= 305:
 		!	0 <= strenbuf <= 50
 		$result = 'healthy'