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