Fix cooldown math while I'm here

This commit is contained in:
Little-119
2020-05-06 17:50:54 -04:00
parent 6f9f3cd897
commit f5990cfe35
+1 -1
View File
@@ -928,7 +928,7 @@
return 1
if(href_list["nightshift"])
if(last_nightshift_switch > world.time + 10 SECONDS) // don't spam...
if(last_nightshift_switch > world.time - 10 SECONDS) // don't spam...
to_chat(usr, "<span class='warning'>[src]'s night lighting circuit breaker is still cycling!</span>")
return 0
last_nightshift_switch = world.time