Now autolathe spews all materials like protolathe does.
This commit is contained in:
Chinsky
2014-09-11 05:19:25 +04:00
parent 33cf071b57
commit 89dab97ea2
+12 -1
View File
@@ -373,4 +373,15 @@
tot_rating += MB.rating
storage_capacity["metal"] = tot_rating * 25000
storage_capacity["glass"] = tot_rating * 12500
storage_capacity["glass"] = tot_rating * 12500
/obj/machinery/autolathe/dismantle()
..()
var/list/sheets = list("metal" = /obj/item/stack/sheet/metal, "glass" = /obj/item/stack/sheet/glass)
for(var/mat in stored_material)
var/T = sheets[mat]
var/obj/item/stack/sheet/S = new T
if(stored_material[mat] > S.perunit)
S.amount = round(stored_material[mat] / S.perunit)
S.loc = loc