1
0
Selaa lähdekoodia

[fixed] a gamebreaking bug, and updated the cheatmenu bodyfat setting to better update your bodyfat with the new system

anjuna krokus 11 kuukautta sitten
vanhempi
sitoutus
4bbc08b075
2 muutettua tiedostoa jossa 19 lisäystä ja 4 poistoa
  1. 8 2
      locations/Cheatmenu_din.qsrc
  2. 11 2
      locations/body.qsrc

+ 8 - 2
locations/Cheatmenu_din.qsrc

@@ -907,8 +907,8 @@ $cheatmenu['looks'] = {
 	*nl
 	if dounspell = 0:
 		if fat ! 0: '<a href="exec:fat = 0 & dynamic $cheatmenu[''looks'']">Zero fat</a>'
-		'Body Fat = (<<pcs_mass[''body'']>>): <a href="exec: pcs_mass[''body''] -= 10 & gs ''body'', ''softreset'' & dynamic $cheatmenu[''looks'']">-10</a> <a href="exec: pcs_mass[''body''] -= 5 & gs ''body'', ''softreset'' & dynamic $cheatmenu[''looks'']">-5</a> <a href="exec: pcs_mass[''body''] -= 1 & gs ''body'', ''softreset'' & dynamic $cheatmenu[''looks'']">-1</a> <a href="exec: pcs_mass[''body''] += 1 & gs ''body'', ''softreset'' & dynamic $cheatmenu[''looks'']">+1</a> <a href="exec: pcs_mass[''body''] += 5 & gs ''body'', ''softreset'' & dynamic $cheatmenu[''looks'']">+5</a> <a href="exec: pcs_mass[''body''] += 10 & gs ''body'', ''softreset'' & dynamic $cheatmenu[''looks'']">+10</a>'
-		'Note: You need some Body Fat to survive, any value under 11 is clasified as "starving" and a value of 0 can lead to a Game Over.'
+		'Body Fat = (<<pcs_mass[''body'']>>): <a href="exec: gs ''Cheatmenu_din'', ''change_pcs_mass_body'', -10">-10</a> <a href="exec: gs ''Cheatmenu_din'', ''change_pcs_mass_body'', -5">-5</a> <a href="exec: gs ''Cheatmenu_din'', ''change_pcs_mass_body'', -1">-1</a> <a href="exec: gs ''Cheatmenu_din'', ''change_pcs_mass_body'', 1">+1</a> <a href="exec: gs ''Cheatmenu_din'', ''change_pcs_mass_body'', 5">+5</a> <a href="exec: gs ''Cheatmenu_din'', ''change_pcs_mass_body'', 10">+10</a>'
+		'Note: You need some Body Fat to survive, any value under 11 is clasified as "starving" and a value of 0 can lead to a Game Over. 60 is the center of a healthy bodyweight.'
 	end
 	*nl
 	'<a href="exec:dynamic $cheatmenu[''tatoo'']">Tattoo removal</a>'
@@ -955,6 +955,12 @@ $cheatmenu['looks'] = {
 	'</td></tr></table></center>'
 }
 
+if $ARGS[0] = 'change_pcs_mass_body':
+	gs 'body', 'Set_mass_distribution_using_body', pcs_mass['body'] + ARGS[1]
+	dynamic $cheatmenu['looks']
+end
+
+
 if $ARGS[0] = 'vagenlarge':
 	if pcs_vag = 0:
 		pcs_vag = 5

+ 11 - 2
locations/body.qsrc

@@ -59,7 +59,7 @@ if $ARGS[0] = 'UpdateBodyMeasurement':
 	pcs_waist = (pcs_hips  * bodyVars['wratio']) / 100 + bodyVars['vofat']
 	pcs_band  = (pcs_waist * bodyVars['bratio']) / 100 + bodyVars['vofat']
 	pcs_bust  = (pcs_waist * bodyVars['bratio']) / 100 + pcs_mass['bust'] + bodyVars['bust_magic'] + bodyVars['bust_silicone'] + max(-10, min(bodyVars['bust_other'], 10))
-	pcs_butt  = (pcs_hips  * 10    ) / 100 + bodyVars['butt_bonus'] + bodyVars['butt_silicone'] + bodyVars['butt_cheat'] + pcs_butt_tr + bodyVarsmax(-5, min(bodyVars['butt_other'], 5))
+	pcs_butt  = (pcs_hips  * 10    ) / 100 + bodyVars['butt_bonus'] + bodyVars['butt_silicone'] + bodyVars['butt_cheat'] + pcs_butt_tr + max(-5, min(bodyVars['butt_other'], 5))
 
 	!! pcs_cupsize = pcs_mass['bust'] + bodyVars['bust_magic'] + bodyVars['bust_silicone'] - bodyVars['vofat']
 	pcs_cupsize = pcs_bust - pcs_band
@@ -708,7 +708,7 @@ if $ARGS[0] = 'Redistribute_Mass':
 end
 
 
-if $ARGS[0] = 'Reset_Mass_distribution':
+if $ARGS[0] = 'Reset_mass_distribution':
 	total_mass = pcs_mass['body'] + pcs_mass['bust'] + pcs_mass['butt']
 	total_gen_mass = 60 + pcs_mass['bust_gen'] + pcs_mass['butt_gen']
 
@@ -727,6 +727,15 @@ if $ARGS[0] = 'Reset_Mass_distribution':
 end
 
 
+if $ARGS[0] = 'Set_mass_distribution_using_body':
+	pcs_mass['body'] = ARGS[1]
+	pcs_mass['bust'] = (pcs_mass['bust_gen'] * ARGS[1]) / 60
+	pcs_mass['butt'] = (pcs_mass['butt_gen'] * ARGS[1]) / 60
+
+	gs 'body', 'Reset_mass_distribution'
+end
+
+
 	!!-------------------------    UPDATE vhips    -------------------------!!