Matter Matters

This commit is contained in:
Mechoid
2020-12-02 02:30:32 -05:00
committed by VirgoBot
parent 7dd91bcd33
commit 814375ea3b
4 changed files with 294 additions and 132 deletions
+11 -1
View File
@@ -68,9 +68,19 @@ other types of metals and chemistry for reagents).
/datum/design/item
build_type = PROTOLATHE
//Make sure items don't get free power
//Make sure items don't get free power, or resources. Also make things be recycled with proper values.
/datum/design/item/Fabricate()
var/obj/item/I = ..()
if(LAZYLEN(materials))
if(!LAZYLEN(I.matter))
I.matter = list()
else
I.matter.Cut()
for(var/matname in materials)
I.matter[matname] = materials[matname]
var/obj/item/weapon/cell/C = I.get_cell()
if(C)
C.charge = 0