This commit is contained in:
Kharkov72
2019-06-29 16:42:28 -04:00
parent 4edcd2e312
commit 5b9d1ef68e
2 changed files with 6 additions and 7 deletions

View File

@@ -118,13 +118,10 @@ var/const/AIRLOCK_WIRE_ONOPEN = 4096
if(!mended) if(!mended)
//Cutting this wire electrifies the door, so that the next person to touch the door without insulated gloves gets electrocuted. //Cutting this wire electrifies the door, so that the next person to touch the door without insulated gloves gets electrocuted.
if(A.secondsElectrified != -1) A.shockedby += text("\[[time_stamp()]\][user](ckey:[user.ckey])")
A.shockedby += text("\[[time_stamp()]\][user](ckey:[user.ckey])") A.secondsElectrified = -1
A.secondsElectrified = -1
else else
if(A.secondsElectrified == -1) A.secondsElectrified = 0
A.secondsElectrified = 0
return // Don't update the dialog.
if (AIRLOCK_WIRE_SAFETY) if (AIRLOCK_WIRE_SAFETY)
A.safe = mended A.safe = mended
@@ -139,6 +136,7 @@ var/const/AIRLOCK_WIRE_ONOPEN = 4096
A.lights = mended A.lights = mended
A.update_icon() A.update_icon()
playsound(user, 'sound/items/wirecutter.ogg', 20, 1)
/datum/wires/airlock/UpdatePulsed(var/index, mob/user) /datum/wires/airlock/UpdatePulsed(var/index, mob/user)
@@ -196,7 +194,6 @@ var/const/AIRLOCK_WIRE_ONOPEN = 4096
if(A.secondsElectrified<0) if(A.secondsElectrified<0)
A.secondsElectrified = 0 A.secondsElectrified = 0
sleep(10) sleep(10)
return
if(AIRLOCK_WIRE_OPEN_DOOR) if(AIRLOCK_WIRE_OPEN_DOOR)
//tries to open the door without ID //tries to open the door without ID
//will succeed only if the ID wire is cut or the door requires no access //will succeed only if the ID wire is cut or the door requires no access
@@ -222,3 +219,5 @@ var/const/AIRLOCK_WIRE_ONOPEN = 4096
if(AIRLOCK_WIRE_ONOPEN) if(AIRLOCK_WIRE_ONOPEN)
A.visible_message("<span class = 'notice'>\The [A]'s motors whirr.</span>") A.visible_message("<span class = 'notice'>\The [A]'s motors whirr.</span>")
playsound(user, 'sound/machines/airlock_beep.ogg', 15, 1)

Binary file not shown.