Browse Source

[fixed] bugs related to the new body_structure file

anjuna krokus 4 months ago
parent
commit
c4c7994800
2 changed files with 7 additions and 7 deletions
  1. 3 3
      locations/_body_image.qsrc
  2. 4 4
      locations/body_structure.qsrc

+ 3 - 3
locations/_body_image.qsrc

@@ -7,9 +7,9 @@
 $body_image_msg = ''
 if $ARGS[0] = 'body':
 	!!!! $result = func('body_bmi_stren', 'body_img', pcs_bmi, 'strenbuf')
-	bodyVars['img'] = func('body_structure', 'body_img', pcs_bmi, 'strenbuf')
-	$result = bodyVars['img']
-	body_image_msg += 'You are <<pcs_hgt>>cm tall and <<$bodyVars[''desc'']>>'
+	$bodyVars['img'] = func('body_structure', 'body_img', pcs_bmi, 'strenbuf')
+	$result = $bodyVars['img']
+	$body_image_msg += 'You are <<pcs_hgt>>cm tall and <<$bodyVars[''desc'']>>'
 end
 
 if $ARGS[0] = 'coat':

+ 4 - 4
locations/body_structure.qsrc

@@ -63,7 +63,7 @@ end
 if $ARGS[0] = 'bmi_desc':
 	if arrsize('ARGS') = 1: ARGS[1] = pcs_bmi
 	if arrsize('ARGS') = 2: ARGS[2] = strenbuf
-	bs_temp_bs_class = func('body_structure', ARGS[1], ARGS[2])
+	bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
 
 	if bs_temp_bs_class < 100:
 		$result = 'You are severely underweight.'
@@ -92,7 +92,7 @@ end
 if $ARGS[0] = 'appearance_bonus':
 	if arrsize('ARGS') = 1: ARGS[1] = pcs_bmi
 	if arrsize('ARGS') = 2: ARGS[2] = strenbuf
-	bs_temp_bs_class = func('body_structure', ARGS[1], ARGS[2])
+	bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
 
 	if bs_temp_bs_class < 100:
 		!! severely underweight
@@ -181,7 +181,7 @@ if $ARGS[0] = 'body_img':
 
 	if arrsize('ARGS') = 1: ARGS[1] = pcs_bmi
 	if arrsize('ARGS') = 2: ARGS[2] = strenbuf
-	bs_temp_bs_class = func('body_structure', ARGS[1], ARGS[2])
+	bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
 
 	if bdsetlock = 1:
 		if fixbodset = 0:
@@ -283,7 +283,7 @@ if $ARGS[0] = 'body_desc':
 
 	if arrsize('ARGS') = 1: ARGS[1] = pcs_bmi
 	if arrsize('ARGS') = 2: ARGS[2] = strenbuf
-	bs_temp_bs_class = func('body_structure', ARGS[1], ARGS[2])
+	bs_temp_bs_class = func('body_structure', 'get_class', ARGS[1], ARGS[2])
 
 	! starving:
 	if bs_temp_bs_class <= 17: