Jelajahi Sumber

Merge remote-tracking branch 'Anjuna/master'

Kevin_Smarts 7 bulan lalu
induk
melakukan
4d3d7046d4

+ 1 - 1
locations/bed2.qsrc

@@ -1,6 +1,5 @@
 # bed2
 # bed2
 $sleep_loc = 'bed2'
 $sleep_loc = 'bed2'
-menu_off = 0
 
 
 !! Lying in bed hub. From here PC can take various actions, including going to sleep.
 !! Lying in bed hub. From here PC can take various actions, including going to sleep.
 !!
 !!
@@ -12,6 +11,7 @@ if $ARGS[0] = 'bed2' or $ARGS[0] = 'start' or $ARGS[0] = '':
 	$alarmloc = 'bed2'
 	$alarmloc = 'bed2'
 	$menu_arg = 'start'
 	$menu_arg = 'start'
 	$alarmarg = 'start'
 	$alarmarg = 'start'
+	menu_off = 0
 
 
 	if clo_flag['bed'] = 1:
 	if clo_flag['bed'] = 1:
 		clo_flag['bed'] = 0
 		clo_flag['bed'] = 0

+ 1 - 1
locations/bed_get_out.qsrc

@@ -1,9 +1,9 @@
 # bed_get_out
 # bed_get_out
 $sleep_loc = 'bed_get_out'
 $sleep_loc = 'bed_get_out'
-menu_off = 1
 
 
 
 
 if $ARGS[0] = 'start' or $ARGS[0] = '':
 if $ARGS[0] = 'start' or $ARGS[0] = '':
+	menu_off = 1
 	minut -= 1
 	minut -= 1
 	InSleep = 0
 	InSleep = 0
 	slept_in = 0
 	slept_in = 0

+ 1 - 1
locations/pre_sleep.qsrc

@@ -1,6 +1,5 @@
 # pre_sleep
 # pre_sleep
 $sleep_loc = 'pre_sleep'
 $sleep_loc = 'pre_sleep'
-menu_off = 1
 
 
 !! Deals with all the triggers that happen to prepare to for the sleep cycle, before the dream events start.
 !! Deals with all the triggers that happen to prepare to for the sleep cycle, before the dream events start.
 !!
 !!
@@ -9,6 +8,7 @@ menu_off = 1
 
 
 
 
 if $ARGS[0] = 'start' or $ARGS[0] = '':
 if $ARGS[0] = 'start' or $ARGS[0] = '':
+	menu_off = 1
 	gt 'pre_sleep_events', 'start'
 	gt 'pre_sleep_events', 'start'
 end
 end
 
 

+ 4 - 1
locations/sleep.qsrc

@@ -1,6 +1,5 @@
 # sleep
 # sleep
 $sleep_loc = 'sleep'
 $sleep_loc = 'sleep'
-menu_off = 1
 
 
 !! Deals with the sleep cycle, advancing both time and stats during sleep.
 !! Deals with the sleep cycle, advancing both time and stats during sleep.
 !!
 !!
@@ -43,6 +42,7 @@ end
 
 
 
 
 if $ARGS[0] = 'start':
 if $ARGS[0] = 'start':
+	menu_off = 1
 !! to avoid sleeping the whole day I decide to calcululate the duration of the sleep in advance
 !! to avoid sleeping the whole day I decide to calcululate the duration of the sleep in advance
 !! 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
 !! 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
 
 
@@ -73,6 +73,7 @@ if $ARGS[0] = 'start':
 end
 end
 
 
 if $ARGS[0] = 'sleep_handler':
 if $ARGS[0] = 'sleep_handler':
+	menu_off = 1
 	if sleepVars['minutes_to_wakeup'] > 0:
 	if sleepVars['minutes_to_wakeup'] > 0:
 		xgt 'sleep', 'sleep_loop'
 		xgt 'sleep', 'sleep_loop'
 	else
 	else
@@ -82,6 +83,7 @@ end
 
 
 
 
 if $ARGS[0] = 'sleep_loop':
 if $ARGS[0] = 'sleep_loop':
+	menu_off = 1
 	:sleep_loop_loop
 	:sleep_loop_loop
 		minut += 1
 		minut += 1
 		sleepVars['stime'] += 1
 		sleepVars['stime'] += 1
@@ -134,6 +136,7 @@ end
 
 
 
 
 if $ARGS[0] = 'post_sleep':
 if $ARGS[0] = 'post_sleep':
+	menu_off = 1
 	if pcs_condition['lack_of_sleep'] >= 10:
 	if pcs_condition['lack_of_sleep'] >= 10:
 	!!Worsening of skin quality if you do not sleep enough.
 	!!Worsening of skin quality if you do not sleep enough.
 		skinDailyPenalty += 2
 		skinDailyPenalty += 2

+ 3 - 5
locations/sleep_simple.qsrc

@@ -1,7 +1,5 @@
 # sleep_simple
 # sleep_simple
 $sleep_loc = 'sleep_simple'
 $sleep_loc = 'sleep_simple'
-menu_off = 1
-
 
 
 if $ARGS[0] = 'simple':
 if $ARGS[0] = 'simple':
 !! to avoid sleeping the whole day I decide to calculate the duration of the sleep in advance
 !! to avoid sleeping the whole day I decide to calculate the duration of the sleep in advance
@@ -65,9 +63,10 @@ end
 
 
 if $ARGS[0] = 'nap_bed':
 if $ARGS[0] = 'nap_bed':
 	act 'Take a nap (1:00)':
 	act 'Take a nap (1:00)':
+		menu_off = 1
 		cla
 		cla
 		if pcs_sleep < 10:
 		if pcs_sleep < 10:
-			gt 'sleep', 'prepare_sleep'
+			gt 'pre_sleep', 'prepare_sleep'
 		elseif pcs_sleep <= 90:
 		elseif pcs_sleep <= 90:
 			InSleep = 1
 			InSleep = 1
 			pcs_sleep += 10
 			pcs_sleep += 10
@@ -76,14 +75,13 @@ if $ARGS[0] = 'nap_bed':
 			gs 'stat'
 			gs 'stat'
 			*nl
 			*nl
 			'You sleep about an hour.'
 			'You sleep about an hour.'
-			act 'Get up': InSleep = 0 & gt 'bed_get_out', 'start'
 		else
 		else
 			minut += 5
 			minut += 5
 			gs 'stat'
 			gs 'stat'
 			*nl
 			*nl
 			'You are not tired enough to sleep, even for a short nap.'
 			'You are not tired enough to sleep, even for a short nap.'
-			act 'Get up': gt 'bed_get_out', 'start'
 		end
 		end
+		act 'Get up': InSleep = 0 & gt 'bed_get_out', 'start'
 	end
 	end
 end
 end
 
 

+ 1 - 1
locations/wakeup.qsrc

@@ -1,6 +1,5 @@
 # wakeup
 # wakeup
 $sleep_loc = 'wakeup'
 $sleep_loc = 'wakeup'
-menu_off = 1
 
 
 !! Deals with all the triggers that happen when waking up.
 !! Deals with all the triggers that happen when waking up.
 !!
 !!
@@ -29,6 +28,7 @@ end
 
 
 
 
 if $ARGS[0] = 'get_out':
 if $ARGS[0] = 'get_out':
+	menu_off = 1
 	sleepVars['time_now'] = daystart * 1440 + hour * 60 + minut
 	sleepVars['time_now'] = daystart * 1440 + hour * 60 + minut
 	if slept_in = 1:
 	if slept_in = 1:
 		'You wake up at <<func(''alarmclock'', ''alarm_display'', hour, minut)>>, after sleeping-in a little longer than planned, but at least you''ve had plenty of sleep.'
 		'You wake up at <<func(''alarmclock'', ''alarm_display'', hour, minut)>>, after sleeping-in a little longer than planned, but at least you''ve had plenty of sleep.'