Goddammit

This commit is contained in:
Matt
2016-05-26 21:54:58 +02:00
parent babfe22a06
commit e158625bb8
4 changed files with 19 additions and 4 deletions
+11 -2
View File
@@ -31,6 +31,9 @@
/obj/item/weapon/door_remote/afterattack(obj/machinery/door/airlock/D, mob/user)
if(!istype(D))
return
if(D.is_special)
to_chat(user, "<span class='danger'>[src] cannot access this kind of door!</span>")
return
if(!(D.arePowerSystemsOn()))
to_chat(user, "<span class='danger'>[D] has no power!</span>")
return
@@ -55,7 +58,7 @@
else
D.emergency = 1
D.update_icon()
else
else if(!(D.is_special)) //so we don't get double messages for special doors
to_chat(user, "<span class='danger'>[src] does not have access to this door.</span>")
/obj/item/weapon/door_remote/omni
@@ -99,6 +102,12 @@
icon_state = "gangtool-white"
region_access = REGION_GENERAL
/obj/item/weapon/door_remote/centcomm
name = "centcomm door remote"
desc = "High-ranking NT officials only."
icon_state = "gangtool-blue"
region_access = REGION_CENTCOMM
#undef WAND_OPEN
#undef WAND_BOLT
#undef WAND_EMERGENCY
#undef WAND_EMERGENCY