mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 04:37:45 +01:00
Convert /material to /datum/material
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
var/res_name = ""
|
||||
if(ispath(res,/obj/item/stack/material))
|
||||
var/obj/item/stack/material/mat_stack = res
|
||||
var/material/mat = get_material_by_name("[initial(mat_stack.default_type)]")
|
||||
var/datum/material/mat = get_material_by_name("[initial(mat_stack.default_type)]")
|
||||
if(material_needs[resource]>1)
|
||||
res_name = "[mat.use_name] [mat.sheet_plural_name]"
|
||||
else
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
if(istype(thing, /obj/item/stack/material) && construction_stage == 1)
|
||||
var/obj/item/stack/material/reinforcing = thing
|
||||
var/material/reinforcing_with = reinforcing.get_material()
|
||||
var/datum/material/reinforcing_with = reinforcing.get_material()
|
||||
if(reinforcing_with.name == DEFAULT_WALL_MATERIAL) // Steel
|
||||
if(reinforcing.get_amount() < 5)
|
||||
to_chat(user, "<span class='warning'>You need at least 5 [reinforcing.singular_name]\s for this task.</span>")
|
||||
|
||||
Reference in New Issue
Block a user