mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
Merge pull request #7247 from lbnesquik/master
Reduce job switch time from 15 to 10 minutes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user