Photocopier safety check

This commit is contained in:
variableundefined
2018-08-29 22:40:16 +08:00
parent 413cbe00eb
commit bd8f0396c2
+4
View File
@@ -72,6 +72,10 @@
photocopy(copyitem)
sleep(15)
else if(istype(copyitem, /obj/item/paper_bundle))
var/obj/item/paper_bundle/C = copyitem
if(toner < (C.amount + 1))
visible_message("<span class='notice'>A yellow light on \the [src] flashes, indicating there's not enough toner for the operation.</span>") // It is better to prevent partial bundle than to produce broken paper bundle
return
var/obj/item/paper_bundle/B = bundlecopy(copyitem)
if(!B)
return