Allows circuit printers, protolathes, mech fabricators, and prosthetic fabricators to store and use plastic and osmium sheets. No blueprints currently use either, however.

This commit is contained in:
Mechoid
2018-01-08 21:25:52 -08:00
parent 8114e4050a
commit 2145b0371c
6 changed files with 17 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
var/mat_efficiency = 1
var/speed = 1
materials = list("metal" = 0, "glass" = 0, "gold" = 0, "silver" = 0, "phoron" = 0, "uranium" = 0, "diamond" = 0)
materials = list(DEFAULT_WALL_MATERIAL = 0, "glass" = 0, "plastic" = 0, "gold" = 0, "silver" = 0, "osmium" = 0, "phoron" = 0, "uranium" = 0, "diamond" = 0)
use_power = 1
idle_power_usage = 30
@@ -120,7 +120,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
return 1
if(O.is_open_container())
return 0
if(!istype(O, /obj/item/stack/material/glass) && !istype(O, /obj/item/stack/material/gold) && !istype(O, /obj/item/stack/material/diamond) && !istype(O, /obj/item/stack/material/uranium))
if(!istype(O, /obj/item/stack/material)) //Previously checked for specific material sheets, for some reason? Made the check on 133 redundant.
user << "<span class='notice'>You cannot insert this item into \the [src].</span>"
return 1
if(stat)