mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
skull_is_a.git
This commit is contained in:
@@ -37,21 +37,21 @@
|
||||
/datum/controller/process/night_lighting/preStart()
|
||||
|
||||
switch (worldtime2ticks())
|
||||
if (0 to (config.nl_finish_hour*TICKS_IN_HOUR))
|
||||
if (0 to config.nl_finish)
|
||||
deactivate()
|
||||
if ((config.nl_start_hour*TICKS_IN_HOUR) to TICKS_IN_DAY)
|
||||
if ((config.nl_start to TICKS_IN_DAY)
|
||||
activate()
|
||||
|
||||
|
||||
/datum/controller/process/night_lighting/doWork()
|
||||
|
||||
switch (worldtime2ticks())
|
||||
if (0 to (config.nl_finish_hour*TICKS_IN_HOUR))
|
||||
if (0 to config.nl_finish)
|
||||
if (isactive)
|
||||
command_announcement.Announce("Good morning. The time is [worldtime2text()]. \n\nThe automated systems aboard the [station_name()] will now return the public hallway lighting levels to normal.", "Automated Lighting System", new_sound = 'sound/misc/bosuns_whistle.ogg')
|
||||
deactivate()
|
||||
|
||||
if ((config.nl_start_hour*TICKS_IN_HOUR) to TICKS_IN_DAY)
|
||||
if (config.nl_start to TICKS_IN_DAY)
|
||||
if (!isactive)
|
||||
command_announcement.Announce("Good evening. The time is [worldtime2text()]. \n\nThe automated systems aboard the [station_name()] will now dim lighting in the public hallways in order to accommodate the circadian rhythm of some species.", "Automated Lighting System", new_sound = 'sound/misc/bosuns_whistle.ogg')
|
||||
activate()
|
||||
|
||||
@@ -171,8 +171,8 @@ var/list/gamemode_cache = list()
|
||||
var/ghost_interaction = 0
|
||||
|
||||
var/night_lighting = 0
|
||||
var/nl_start_hour = 19
|
||||
var/nl_finish_hour = 8
|
||||
var/nl_start = 19 * TICKS_IN_HOUR
|
||||
var/nl_finish = 8 * TICKS_IN_HOUR
|
||||
|
||||
var/comms_password = ""
|
||||
|
||||
@@ -604,10 +604,10 @@ var/list/gamemode_cache = list()
|
||||
config.night_lighting = 1
|
||||
|
||||
if("nl_start_hour")
|
||||
config.nl_start_hour = text2num(value)
|
||||
config.nl_start = text2num(value) * TICKS_IN_HOUR
|
||||
|
||||
if("nl_finish_hour")
|
||||
config.nl_finish_hour = text2num(value)
|
||||
config.nl_finish = text2num(value) * TICKS_IN_HOUR
|
||||
|
||||
if("disable_player_mice")
|
||||
config.disable_player_mice = 1
|
||||
|
||||
Reference in New Issue
Block a user