Merge pull request #14458 from Kyep/photocopier_fix

Fixes emagged photocopiers cooldown handling
This commit is contained in:
AffectedArc07
2020-09-27 09:45:44 +01:00
committed by GitHub
+4 -3
View File
@@ -59,6 +59,10 @@
if(stat & (BROKEN|NOPOWER))
return
if(emag_cooldown > world.time)
to_chat(usr, "<span class='warning'>[src] is busy, try again in a few seconds.</span>")
return
playsound(loc, 'sound/goonstation/machines/printer_dotmatrix.ogg', 50, 1)
for(var/i = 0, i < copies, i++)
if(toner <= 0)
@@ -74,9 +78,6 @@
GLOB.copier_items_printed_logged = TRUE
break
if(emag_cooldown > world.time)
return
if(istype(copyitem, /obj/item/paper))
copy(copyitem)
sleep(15)