From 2d6b8a9a82aeb84ee9e0ff08a804e693c5a675cf Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sat, 7 Mar 2015 16:25:40 +0300 Subject: [PATCH] Randomizes roundstart time, one of few times 5 hours apart are picked. --- code/__HELPERS/time.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/time.dm b/code/__HELPERS/time.dm index ab949df44b..f20830e5cc 100644 --- a/code/__HELPERS/time.dm +++ b/code/__HELPERS/time.dm @@ -4,9 +4,11 @@ #define MINUTE *600 #define MINUTES *600 +var/roundstart_hour = 0 //Returns the world time in english proc/worldtime2text(time = world.time) - return "[round(time / 36000)+12]:[(time / 600 % 60) < 10 ? add_zero(time / 600 % 60, 1) : time / 600 % 60]" + if(!roundstart_hour) roundstart_hour = pick(2,7,12,17) + return "[round(time / 36000)+roundstart_hour]:[(time / 600 % 60) < 10 ? add_zero(time / 600 % 60, 1) : time / 600 % 60]" proc/time_stamp() return time2text(world.timeofday, "hh:mm:ss")