Merge pull request #7247 from lbnesquik/master

Reduce job switch time from 15 to 10 minutes.
This commit is contained in:
Aronai Sieyes
2020-04-27 10:55:53 -04:00
committed by GitHub
+4 -3
View File
@@ -209,8 +209,9 @@
/obj/machinery/computer/timeclock/proc/checkCardCooldown()
if(!card)
return FALSE
if((world.time - card.last_job_switch) < 15 MINUTES)
to_chat(usr, "You need to wait at least 15 minutes after last duty switch.")
var/time_left = 10 MINUTES - (world.time - card.last_job_switch)
if(time_left > 0)
to_chat(usr, "You need to wait another [round((time_left/10)/60, 1)] minute\s before you can switch.")
return FALSE
return TRUE
@@ -270,4 +271,4 @@
/obj/machinery/computer/timeclock/premade/west
dir = 4
pixel_x = -26
pixel_x = -26