Makes blast doors/shutters and blast door controllers buildable and deconstructible (#56486)

This commit is contained in:
HugoOdaX
2021-01-31 12:53:00 -08:00
committed by GitHub
parent 450c0c70a7
commit 4e2ffd1338
5 changed files with 86 additions and 0 deletions
+6
View File
@@ -13,6 +13,12 @@
if(id)
. += "<span class='notice'>Its channel ID is '[id]'.</span>"
/obj/item/assembly/control/multitool_act(mob/living/user)
var/change_id = input("Set the shutters/blast door/blast door controllers ID. It must be a number between 1 and 100.", "ID", id) as num|null
if(change_id)
id = clamp(round(change_id, 1), 1, 100)
to_chat(user, "<span class='notice'>You change the ID to [id].</span>")
/obj/item/assembly/control/activate()
var/openclose
if(cooldown)
@@ -1203,3 +1203,11 @@
materials = list(/datum/material/iron = 75)
build_path = /obj/item/chisel
category = list("initial","Tools")
/datum/design/control
name = "Blast Door Controller"
id = "blast"
build_type = AUTOLATHE
materials = list(/datum/material/iron = 100, /datum/material/glass = 50)
build_path = /obj/item/assembly/control
category = list("initial","Misc")