mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #8996 from PsiOmegaDelta/SecureBuzzing
Now only secure airlocks buzz if access is restricted.
This commit is contained in:
@@ -490,7 +490,8 @@ About the new airlock wires panel:
|
||||
if("deny")
|
||||
if(density && src.arePowerSystemsOn())
|
||||
flick("door_deny", src)
|
||||
playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0)
|
||||
if(secured_wires)
|
||||
playsound(src.loc, 'sound/machines/buzz-two.ogg', 50, 0)
|
||||
return
|
||||
|
||||
/obj/machinery/door/airlock/attack_ai(mob/user as mob)
|
||||
@@ -956,6 +957,11 @@ About the new airlock wires panel:
|
||||
update_icon()
|
||||
return 1
|
||||
|
||||
/obj/machinery/door/airlock/allowed(mob/M)
|
||||
if(locked)
|
||||
return 0
|
||||
return ..(M)
|
||||
|
||||
/obj/machinery/door/airlock/New(var/newloc, var/obj/structure/door_assembly/assembly=null)
|
||||
..()
|
||||
|
||||
|
||||
4
html/changelogs/PsiOmegaDelta-PR-8996.yml
Normal file
4
html/changelogs/PsiOmegaDelta-PR-8996.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
author: PsiOmegaDelta
|
||||
delete-after: True
|
||||
changes:
|
||||
- tweak: "Secure airlocks now buzz when access is denied."
|
||||
Reference in New Issue
Block a user