Porting further material datum features and improvements.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/turf/closed/wall/material
|
||||
name = "wall"
|
||||
desc = "A huge chunk of material used to separate rooms."
|
||||
icon = 'icons/turf/walls/materialwall.dmi'
|
||||
icon_state = "wall"
|
||||
canSmoothWith = list(/turf/closed/wall/material)
|
||||
smooth = SMOOTH_TRUE
|
||||
material_flags = MATERIAL_ADD_PREFIX | MATERIAL_COLOR | MATERIAL_AFFECT_STATISTICS
|
||||
|
||||
/turf/closed/wall/material/break_wall()
|
||||
for(var/i in custom_materials)
|
||||
var/datum/material/M = i
|
||||
new M.sheet_type(src, FLOOR(custom_materials[M] / MINERAL_MATERIAL_AMOUNT, 1))
|
||||
return new girder_type(src)
|
||||
|
||||
/turf/closed/wall/material/devastate_wall()
|
||||
for(var/i in custom_materials)
|
||||
var/datum/material/M = i
|
||||
new M.sheet_type(src, FLOOR(custom_materials[M] / MINERAL_MATERIAL_AMOUNT, 1))
|
||||
|
||||
/turf/closed/wall/material/mat_update_desc(mat)
|
||||
desc = "A huge chunk of [mat] used to separate rooms."
|
||||
Reference in New Issue
Block a user