Porting a couple material datums code updates and fixes.
This commit is contained in:
@@ -15,10 +15,10 @@
|
||||
if(!isitem(O))
|
||||
return 0
|
||||
var/obj/item/I = O
|
||||
if(!(getmaterialref(material_id) in I.custom_materials))
|
||||
if(!(SSmaterials.GetMaterialRef(material_id) in I.custom_materials))
|
||||
return 0
|
||||
|
||||
var/amount = I.custom_materials[getmaterialref(material_id)]
|
||||
var/amount = I.custom_materials[SSmaterials.GetMaterialRef(material_id)]
|
||||
|
||||
if(istype(I, /obj/item/stack/ore))
|
||||
amount *= 0.8 // Station's ore redemption equipment is really goddamn good.
|
||||
|
||||
Reference in New Issue
Block a user