2 Angajamente 4cc9fdb6be ... 09ee011f32

Autor SHA1 Permisiunea de a trimite mesaje. Dacă este dezactivată, utilizatorul nu va putea trimite nici un fel de mesaj Data
  Dank 09ee011f32 [added] floor for song freshness to stop <0 value 1 an în urmă
  Dank bc78f64321 [fixed] Bug in calculating editing effect on song 1 an în urmă
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 2 0
      locations/cikl.qsrc
  2. 1 1
      locations/music_onlinemusic.qsrc

+ 2 - 0
locations/cikl.qsrc

@@ -1197,6 +1197,8 @@ if ml_onlinesongcount > 0:
 			if ml_tempsong_uploaded = 1 and (daystart ! ml_tempsong_dayuploaded[j]) and ((daystart - ml_tempsong_dayuploaded[j]) mod(7)) = 0:
             	gs 'fame', 'city', 'music', rand(0, ml_tempsong_freshness[j]/100)
             	ml_tempsong_freshness[j] -= 10
+				!! freshness < 0 shouldn not break anything, but at least for the sake of a clean display it should not go negative
+				if ml_tempsong_freshness[j] < 0: ml_tempsong_freshness[j] = 0
 
 			end
 		end

+ 1 - 1
locations/music_onlinemusic.qsrc

@@ -667,7 +667,7 @@ if $ARGS[0] = 'calc_edit_effect':
 	!! Since music skill on its own doesn''t generate much value, high time-investment music editing will radically increase the quality of music - but it must be dependent on the original content.
 	!! Good editing alone can''t make a popular musician (or can it... sigh).
 	if ml_onlinesong_editcount[ARGS[1]] ! 0:
-		result = (ml_onlinesong_editingskill[ARGS[1]] * 3) * (ml_onlinesong_editcount[ARGS[1]] + 1) / (ml_onlinesong_editcount[upload_index] + 3)
+		result = (ml_onlinesong_editingskill[ARGS[1]] * 3) * (ml_onlinesong_editcount[ARGS[1]] + 1) / (ml_onlinesong_editcount[ARGS[1]] + 3)
 	else 
 		result = 0
 	end