瀏覽代碼

[fixed] Last couple of duplicate variables

Kevin_Smarts 2 年之前
父節點
當前提交
0fe294adc5
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      locations/body_shape.qsrc

+ 3 - 5
locations/body_shape.qsrc

@@ -244,7 +244,7 @@ if $ARGS[0] = '':
 	if salolast < salo: salolast += 1
 
 !!Setting the pcs_apprnc bonus based on fat and strength
-	bmi_calc = FUNC('body_shape', 'bmicalc', salo, pcs_hgt)
+	bmi_calc = FUNC('body_shape', 'bmicalc')
 	bodykoef = FUNC('body_shape', 'setbodykoef')
 
 !!This is to clean up unused variables
@@ -309,9 +309,7 @@ if $ARGS[0] = 'setbodykoef':
 end
 
 if $ARGS[0] = 'bmicalc':
-	!! ARGS[1] salo
-	!! ARGS[2] pcs_hgt
-	result = 10000 * (30 + ARGS[1] / 2 + (ARGS[2] - 170) * 7 / 10) / (ARGS[2] * ARGS[2])
+	result = 10000 * (30 + salo / 2 + (pcs_hgt - 170) * 7 / 10) / (pcs_hgt * pcs_hgt)
 end
 
 if $ARGS[0] = 'bmiadjust':
@@ -480,7 +478,7 @@ if $ARGS[0] = 'initial':
 	!!pcs_weight = (pcs_hgt * 62 / 170) + (vhips + (vofat * 2)) / 4 + tits
 	
 !!BMI Calculation
-	bmi_calc = FUNC('body_shape', 'bmicalc', salo, pcs_hgt)
+	bmi_calc = FUNC('body_shape', 'bmicalc')
 	
 !!BMI Descriptions
 	if bmi_calc < 16: