瀏覽代碼

Changed sleep time computation

alecsp 2 年之前
父節點
當前提交
8236a48477
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      locations/sleep.qsrc

+ 4 - 4
locations/sleep.qsrc

@@ -5,10 +5,10 @@ if $ARGS[0] = 'simple':
 !! the quality of the sleep depends on many factors, so the time of sleep can be modify later, especially the part when the time of sleep is shortened
 
 	varsleep['time_to_full'] = (100 - pcs_sleep) * 6
-!! fully exhausted Sveta can recover in 420 minutes = 7 hours of sleep
+!! fully exhausted Sveta can recover in 420 minutes = 10 hours of sleep
 !! healthy Sveta can hardly sleep more then 10 hours = 600 minutes
-!! so we can add about 3 hours to time to full as a limit
-	varsleep['time_to_full'] += 150 + rand(0,60)
+!! so we can add about 1 hour to time to full as a limit
+	varsleep['time_to_full'] += rand(0,60)
 
 	varsleep['time_now'] = daystart*1440 + hour * 60 + minut
 	varsleep['alarm_time_end'] = daystart*1440 + timerEnd * 60 + timerEndM
@@ -31,7 +31,7 @@ if $ARGS[0] = 'simple':
 	
 	if stime >= 12:
 		stime = 0
-		pcs_sleep += 3
+		pcs_sleep += 2
 		gs 'stat'
 	end