Curtain and Flap material fix (#10997)

This commit is contained in:
Doxxmedearly
2021-01-23 14:32:36 -06:00
committed by GitHub
parent 8b41eb51a9
commit 3bfcda228f
4 changed files with 18 additions and 0 deletions

View File

@@ -11,6 +11,11 @@
anchored = TRUE //curtains start secured in place
build_amt = 2
var/manipulating = FALSE //prevents queuing up multiple deconstructs and returning a bunch of cloth
var/curtain_material = MATERIAL_CLOTH
/obj/structure/curtain/Initialize()
. = ..()
material = SSmaterials.get_material_by_name(curtain_material)
/obj/structure/curtain/open
icon_state = "open"
@@ -76,12 +81,14 @@
color = "#B8F5E3"
anchored = FALSE
alpha = 200
curtain_material = MATERIAL_PLASTIC
/obj/structure/curtain/open/medical
name = "plastic curtain"
color = "#B8F5E3"
anchored = FALSE
alpha = 200
curtain_material = MATERIAL_PLASTIC
/obj/structure/curtain/open/bed
name = "bed curtain"

View File

@@ -15,6 +15,10 @@
/mob/living/silicon/robot/drone
)
/obj/structure/plasticflaps/Initialize()
. = ..()
material = SSmaterials.get_material_by_name(MATERIAL_PLASTIC)
/obj/structure/plasticflaps/CanPass(atom/A, turf/T)
if(istype(A) && A.checkpass(PASSGLASS))
return prob(60)

View File

@@ -872,6 +872,7 @@
/material/cloth
name = MATERIAL_CLOTH
stack_type = /obj/item/stack/material/cloth
stack_origin_tech = list(TECH_MATERIAL = 2)
door_icon_base = "wood"
ignition_point = T0C+232

View File

@@ -0,0 +1,6 @@
author: Doxxmedearly
delete-after: True
changes:
- bugfix: "Disassembled curtains and plastic flaps now produce the correct materials, instead of steel sheets."