Bladeren bron

rework formula to use missing health as relative, not absolute
modification

Mona Lisa 6 jaren geleden
bovenliggende
commit
4af4ae0ebd
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      locations/exercise

+ 1 - 1
locations/exercise

@@ -451,7 +451,7 @@ if $ARGS[0] = 'push':
 	end
 	'You do push-ups for <<$timestring>> minutes, improving your strength.'
 	if pcs_energy < 40: energypushtemp = RAND(1,10)
-	pushnum = (pcs_stren * pcs_sleep / 67) - (healthmax - pcs_health) / 2 - energypushtemp + rand(-5,5)
+	pushnum = (pcs_stren * (pcs_sleep / 67) * (pcs_health / healthmax)) - energypushtemp + rand(-5,5)
 	if pushnum < 1: pushnum = rand(1,5)
 	KILLVAR 'energypushtemp'
 	'<br>You managed to do <<pushnum>> push-ups. Your previous record is <<pushrecord>>.'