mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes an exploit with circuit printers
Allows you to print literally anything.
This commit is contained in:
@@ -168,6 +168,8 @@
|
|||||||
else if(ispath(build_type, /obj/item/integrated_circuit))
|
else if(ispath(build_type, /obj/item/integrated_circuit))
|
||||||
var/obj/item/integrated_circuit/IC = build_type
|
var/obj/item/integrated_circuit/IC = build_type
|
||||||
cost = initial(IC.w_class)
|
cost = initial(IC.w_class)
|
||||||
|
else
|
||||||
|
return
|
||||||
|
|
||||||
if(metal - cost < 0)
|
if(metal - cost < 0)
|
||||||
to_chat(usr, "<span class='warning'>You need [cost] metal to build that!.</span>")
|
to_chat(usr, "<span class='warning'>You need [cost] metal to build that!.</span>")
|
||||||
|
|||||||
Reference in New Issue
Block a user