Browse Source

[changed] moved the 'extra' function from sleep to wakeup and renamed it to snooze_alarm

anjuna krokus 6 months ago
parent
commit
18c5d2a3b8
2 changed files with 10 additions and 12 deletions
  1. 0 11
      locations/sleep.qsrc
  2. 10 1
      locations/wakeup.qsrc

+ 0 - 11
locations/sleep.qsrc

@@ -169,17 +169,6 @@ if $ARGS[0] = 'post_sleep':
 end
 
 
-if $ARGS[0] = 'extra':
-	act '"Snooze" a few minutes more...':
-		menu_off = 1
-		sleepVars['slept_in'] = 1
-		gs 'stat'
-		gt 'sleep', 'start'
-	end
-end
-
-
-
 
 
 --- sleep ---------------------------------

+ 10 - 1
locations/wakeup.qsrc

@@ -39,7 +39,7 @@ if $ARGS[0] = 'get_out':
 	elseif alarmVars['alarmOn'] = 1 and sleepVars['time_now'] = sleepVars['alarm_time']:
 		pcs_mood -= 10
 		'Your alarm goes off at <<func(''alarmclock'', ''alarm_display'', hour, minut)>>, '+iif(pcs_sleep < 90, 'but you could do with some extra sleep.', 'and you''ve had plenty of sleep.')+''
-		gs 'sleep', 'extra'
+		gs 'wakeup', 'snooze_alarm'
 	else
 		!! I do not think that it could go here
 		''
@@ -96,4 +96,13 @@ if $ARGS[0] = 'get_out':
 end
 
 
+if $ARGS[0] = 'snooze_alarm':
+	act '"Snooze" a few minutes more...':
+		menu_off = 1
+		sleepVars['slept_in'] = 1
+		gs 'stat'
+		gt 'sleep', 'start'
+	end
+end
+
 --- wakeup ---------------------------------