mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Doors that are powered or bolted can no longer be disassembled. Added messages informing the person disassembling the door as to why it won't work.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@418 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -887,7 +887,7 @@ About the new airlock wires panel:
|
|||||||
else if (istype(C, /obj/item/device/radio/signaler))
|
else if (istype(C, /obj/item/device/radio/signaler))
|
||||||
return src.attack_hand(user)
|
return src.attack_hand(user)
|
||||||
else if (istype(C, /obj/item/weapon/crowbar))
|
else if (istype(C, /obj/item/weapon/crowbar))
|
||||||
if ((src.density) && ( src.welded ) && !( src.operating ) && src.p_open )
|
if ((src.density) && ( src.welded ) && !( src.operating ) && src.p_open && (!src.arePowerSystemsOn() || (stat & NOPOWER)) && !src.locked)
|
||||||
playsound(src.loc, 'Crowbar.ogg', 100, 1)
|
playsound(src.loc, 'Crowbar.ogg', 100, 1)
|
||||||
user.visible_message("[user] removes the electronics from the airlock assembly.", "You start to remove electronics into the airlock assembly.")
|
user.visible_message("[user] removes the electronics from the airlock assembly.", "You start to remove electronics into the airlock assembly.")
|
||||||
sleep(40)
|
sleep(40)
|
||||||
@@ -905,6 +905,10 @@ About the new airlock wires panel:
|
|||||||
new/obj/item/device/multitool( src.loc )
|
new/obj/item/device/multitool( src.loc )
|
||||||
del(src)
|
del(src)
|
||||||
return
|
return
|
||||||
|
else if (src.arePowerSystemsOn() || !(stat & NOPOWER))
|
||||||
|
user << "\blue The airlock's motors resist your efforts to pry it open."
|
||||||
|
else if (src.locked)
|
||||||
|
user << "\blue The airlock's bolts prevent it from being pried open."
|
||||||
if ((src.density) && (!( src.welded ) && !( src.operating ) && ((!src.arePowerSystemsOn()) || (stat & NOPOWER)) && !( src.locked )))
|
if ((src.density) && (!( src.welded ) && !( src.operating ) && ((!src.arePowerSystemsOn()) || (stat & NOPOWER)) && !( src.locked )))
|
||||||
spawn( 0 )
|
spawn( 0 )
|
||||||
src.operating = 1
|
src.operating = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user