mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Photocopier safety check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user