1
0
Kaynağa Gözat

fix the "no action" window

rachels 3 yıl önce
ebeveyn
işleme
a0137342df
1 değiştirilmiş dosya ile 4 ekleme ve 9 silme
  1. 4 9
      locations/bed2.qsrc

+ 4 - 9
locations/bed2.qsrc

@@ -395,27 +395,22 @@ if $ARGS[0] = 'dream':
 
 	varsleep['time_now'] = daystart*1440 + hour * 60 + minut
 
+    $waketext = ''
+	gs 'stat'
 	if slept_in = 1:
-		gs 'stat'
 		$waketext = 'You wake up at <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b>, after sleeping-in a little longer than planned, but at least you''ve had plenty of sleep.'
-		gs 'bed2', 'wake'
 	elseif pcs_sleep >= 100 and budilnikOn = 0:
-		gs 'stat'
 		$waketext = 'You wake up at <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b>, no longer tired and ready to start the day with plenty of sleep.'
-		gs 'bed2', 'wake'
 	elseif pcs_sleep >= 100 and budilnikOn = 1 and varsleep['time_now'] >= varsleep['alarm_time']:
-		gs 'stat'
 		$waketext = 'You wake up at <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b>, just before your alarm goes off. You''ve had plenty of sleep.'
-		gs 'bed2', 'wake'
 	elseif budilnikOn = 1 and varsleep['time_now'] = varsleep['alarm_time']:
 		pcs_mood -= 10
-		gs 'stat'
 		$waketext = 'Your alarm goes off at <b><<$mid(100+hour,2,2)>>:<<$mid(100+minut,2,2)>></b>, '+iif(pcs_sleep < 90, 'but you could do with some extra sleep.', 'and you''ve had plenty of sleep.')+''
 		gs 'bed2', 'extra'
-		gs 'bed2', 'wake'
 	end
-	*nl
 
+	gs 'bed2', 'wake'
+	*nl
 	'<<$waketext>>'
 end