Browse Source

Fixed the bug where busking tips were always zero in Pavlovsk before 5pm

Netuttki 4 years ago
parent
commit
793b07008b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      locations/music_buskingevents.qsrc

+ 3 - 3
locations/music_buskingevents.qsrc

@@ -35,14 +35,14 @@ if $ARGS[0] = 'calculate_tips':
 	if week >= 5: ml_time_mod += 2
 	if hour >= 17: ml_time_mod += 2
 	
-	ml_time_loc_mod = (ml_location_mod + ml_time_mod) / 2
+	ml_time_loc_mod = (ml_location_mod + ml_time_mod) / 2	
 	
-	
-	ml_tipsmax = (pcs_instrmusic + pcs_vokal + pcs_perform + ((hotcat-4)*35)) * ml_time_loc_mod
+	ml_tipsmax = ((pcs_instrmusic + pcs_vokal + pcs_perform + ((hotcat-4)*35)) * (ml_time_loc_mod*10))/10
 	ml_tipsearned = max(rand(0,ml_tipsmax),0)
 
 	killvar 'ml_location_mod'
 	killvar 'ml_time_mod'	
+	killvar 'ml_tipsearned'
 end
 
 --- music_buskingevents ---------------------------------