Browse Source

Merge remote-tracking branch 'Anjuna/master'

Kevin_Smarts 6 tháng trước cách đây
mục cha
commit
00d2c83490

+ 2 - 2
locations/dream_events.qsrc

@@ -5,7 +5,7 @@ menu_off = 1
 !! Dream events trigger after deciding to go to sleep, but before any time has advanced.
 !! Dream events trigger after deciding to go to sleep, but before any time has advanced.
 !! Note that dreams are supposed to stick on the screen during the sleep cycle. So only use xgt and gs!!
 !! Note that dreams are supposed to stick on the screen during the sleep cycle. So only use xgt and gs!!
 !!
 !!
-!! Moved here from pre_sleep
+!! Moved here from sleep
 !! When done: Move to sleep
 !! When done: Move to sleep
 
 
 	!!=====================================!!
 	!!=====================================!!
@@ -135,7 +135,7 @@ if $ARGS[0] = 'continue':
 	killvar 'temp_slev_id'
 	killvar 'temp_slev_id'
 	killvar '$temp_sleep_event_chosen'
 	killvar '$temp_sleep_event_chosen'
 
 
-	xgt 'sleep', 'start'
+	xgt 'sleep', 'post_dream'
 end
 end
 
 
 
 

+ 1 - 1
locations/pre_sleep.qsrc

@@ -172,7 +172,7 @@ if $ARGS[0] = 'end':
 		InSleep = 1
 		InSleep = 1
 		gs 'stat'
 		gs 'stat'
 
 
-		gt 'dream_events', 'start'
+		gt 'sleep', 'start'
 	end
 	end
 end
 end
 
 

+ 26 - 20
locations/sleep.qsrc

@@ -3,37 +3,38 @@ $sleep_loc = 'sleep'
 
 
 !! Deals with the sleep cycle, advancing both time and stats during sleep.
 !! Deals with the sleep cycle, advancing both time and stats during sleep.
 !!
 !!
-!! Moved here from dream_events
+!! Moved here from pre_sleep
+!! Move to dream_events. Then back to sleep (this location).
 !! When busy moves back and forth to sleep_events (and can be redirected from there)
 !! When busy moves back and forth to sleep_events (and can be redirected from there)
 !! When done: Move to wakeup
 !! When done: Move to wakeup
 
 
 if $ARGS[0] = 'full':
 if $ARGS[0] = 'full':
-	msg 'gt ''sleep'', ''full'' is depricated! If you did not load an old save, please report this bug.'
-	gt 'pre_sleep_events', 'start'
+	msg 'gt ''sleep'', ''full'' is depricated! If you did not load an old save, please report this bug. You can continue playing without worry.'
+	gt 'pre_sleep', 'start'
 end
 end
 
 
 if $ARGS[0] = 'sleep':
 if $ARGS[0] = 'sleep':
-	msg 'gt ''sleep'', ''sleep'' is depricated! If you did not load an old save, please report this bug.'
+	msg 'gt ''sleep'', ''sleep'' is depricated! If you did not load an old save, please report this bug. You can continue playing without worry.'
 	gt 'pre_sleep', 'prepare_sleep'
 	gt 'pre_sleep', 'prepare_sleep'
 end
 end
 
 
 if $ARGS[0] = 'dream':
 if $ARGS[0] = 'dream':
-	msg 'gt ''sleep'', ''dream'' is depricated! If you did not load an old save, please report this bug.'
-	gt 'dream_events', 'start'
+	msg 'gt ''sleep'', ''dream'' is depricated! If you did not load an old save, please report this bug. You can continue playing without worry.'
+	gt 'sleep', 'start'
 end
 end
 
 
 if $ARGS[0] = 'wake':
 if $ARGS[0] = 'wake':
-	msg 'gt ''sleep'', ''wake'' is depricated! If you did not load an old save, please report this bug.'
+	msg 'gt ''sleep'', ''wake'' is depricated! If you did not load an old save, please report this bug. You can continue playing without worry.'
 	gt 'wakeup', 'start'
 	gt 'wakeup', 'start'
 end
 end
 
 
 if $ARGS[0] = 'end':
 if $ARGS[0] = 'end':
-	msg 'gt ''sleep'', ''end'' is depricated! If you did not load an old save, please report this bug.'
+	msg 'gt ''sleep'', ''end'' is depricated! If you did not load an old save, please report this bug. You can continue playing without worry.'
 	gt 'bed_get_out', 'start'
 	gt 'bed_get_out', 'start'
 end
 end
 
 
 if $ARGS[0] = '':
 if $ARGS[0] = '':
-	msg 'gt ''sleep'', is depricated! If you did not load an old save, please report this bug.'
+	msg 'gt ''sleep'', is depricated! If you did not load an old save, please report this bug. You can continue playing without worry.'
 	gt 'pre_sleep', 'start'
 	gt 'pre_sleep', 'start'
 	
 	
 end
 end
@@ -42,6 +43,11 @@ end
 
 
 
 
 if $ARGS[0] = 'start':
 if $ARGS[0] = 'start':
+	menu_off = 1
+	gt 'dream_events', 'start'
+end
+
+if $ARGS[0] = 'post_dream':
 	menu_off = 1
 	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
@@ -54,6 +60,17 @@ if $ARGS[0] = 'start':
 	xgt 'sleep', 'sleep_handler'
 	xgt 'sleep', 'sleep_handler'
 end
 end
 
 
+if $ARGS[0] = 'sleep_handler':
+	menu_off = 1
+	gs 'sleep', 'calc_minutes_to_wakeup'
+
+	if sleepVars['minutes_to_wakeup'] > 0:
+		xgt 'sleep', 'sleep_loop'
+	else
+		xgt 'sleep', 'post_sleep'
+	end
+end
+
 if $ARGS[0] = 'calc_minutes_to_wakeup':
 if $ARGS[0] = 'calc_minutes_to_wakeup':
 	sleepVars['time_now'] = daystart * 1440 + hour * 60 + minut
 	sleepVars['time_now'] = daystart * 1440 + hour * 60 + minut
 
 
@@ -72,17 +89,6 @@ if $ARGS[0] = 'calc_minutes_to_wakeup':
 	end
 	end
 end
 end
 
 
-if $ARGS[0] = 'sleep_handler':
-	menu_off = 1
-	gs 'sleep', 'calc_minutes_to_wakeup'
-
-	if sleepVars['minutes_to_wakeup'] > 0:
-		xgt 'sleep', 'sleep_loop'
-	else
-		xgt 'sleep', 'post_sleep'
-	end
-end
-
 
 
 if $ARGS[0] = 'sleep_loop':
 if $ARGS[0] = 'sleep_loop':
 	menu_off = 1
 	menu_off = 1

+ 1 - 1
locations/sleep_events.qsrc

@@ -132,7 +132,7 @@ if $ARGS[0] = 'continue':
 	if $ARGS[1] = 'sleep':
 	if $ARGS[1] = 'sleep':
 		xgt 'sleep', 'sleep_handler'
 		xgt 'sleep', 'sleep_handler'
 	elseif $ARGS[1] = 'dream':
 	elseif $ARGS[1] = 'dream':
-		gt 'dream_events', 'start'
+		gt 'sleep', 'start'
 	else
 	else
 		!! Empty on purpose
 		!! Empty on purpose
 	end
 	end