Update simple_doors.dm

actually fix simple door init properly
This commit is contained in:
Killian
2022-03-08 08:03:09 +00:00
parent 196453543d
commit 8db7eb9173
@@ -31,6 +31,17 @@
if(!material)
return INITIALIZE_HINT_QDEL
material = get_material_by_name(material)
hardness = max(1,round(material.integrity/10))
icon_state = material.door_icon_base
name = "[material.display_name] door"
color = material.icon_colour
if(material.opacity < 0.5)
set_opacity(0)
else
set_opacity(1)
if(material.products_need_process())
START_PROCESSING(SSobj, src)
update_nearby_tiles(need_rebuild=1)
/obj/structure/simple_door/Destroy()
STOP_PROCESSING(SSobj, src)