Fixes an exploit with circuit printers

Allows you to print literally anything.
This commit is contained in:
Arokha Sieyes
2018-04-25 20:47:17 -04:00
parent b4e59c3949
commit 3f6ed1cea7

View File

@@ -168,6 +168,8 @@
else if(ispath(build_type, /obj/item/integrated_circuit))
var/obj/item/integrated_circuit/IC = build_type
cost = initial(IC.w_class)
else
return
if(metal - cost < 0)
to_chat(usr, "<span class='warning'>You need [cost] metal to build that!.</span>")