Merge pull request #5210 from VOREStation/pol-circuitexp

Fixes an exploit with circuit printers
This commit is contained in:
Atermonera
2018-04-27 11:12:46 -07:00
committed by GitHub

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>")