Browse Source

[changed] song quality now uses quadratic equation

Dank 8 months ago
parent
commit
4cc9fdb6be
1 changed files with 3 additions and 1 deletions
  1. 3 1
      locations/music_onlinemusic.qsrc

+ 3 - 1
locations/music_onlinemusic.qsrc

@@ -594,7 +594,9 @@ if $ARGS[0] = 'recording_stats':
 
 		!! Run a randomizer to pick a modifier to the song quality
 		!! 100 represents a song written as good as the PC can possibly perform
-		quality_mod = func('shortgs', 'rand_pick', 'delimit', 'number', '20-40-40-60-60-60-80-80-100', '-')
+		! quality_mod = func('shortgs', 'rand_pick', 'delimit', 'number', '20-40-40-60-60-60-80-80-100', '-')
+		!! What is this, preschool? We do quadratics in this bitch
+		quality_mod = -1 * (func('shortgs', 's_pow', (rand(1, 100) - 50), 2))/25 + 100
 
 		ml_onlinesong_skilllevel[ARGS[1]] = func('shortgs','round_divide', (ml_onlinesong_skilllevel[ARGS[1]] * quality_mod), 100)
 		ml_onlinesong_freshness[ARGS[1]] = func('shortgs','round_divide', (ml_onlinesong_freshness[ARGS[1]] * quality_mod), 100)