Ports some sounds for toolbox/briefcase/switch (#21938)

This commit is contained in:
Henri215
2023-09-01 19:00:36 -03:00
committed by GitHub
parent 21150901d5
commit e5ca69bd06
7 changed files with 6 additions and 2 deletions

View File

@@ -316,6 +316,7 @@ GLOBAL_LIST_INIT(conveyor_switches, list())
/obj/machinery/conveyor_switch/proc/toggle(mob/user)
add_fingerprint(user)
playsound(loc, 'sound/machines/switch.ogg', 10, TRUE)
if(!allowed(user) && !user.can_advanced_admin_interact()) //this is in Para but not TG. I don't think there's any which are set anyway.
to_chat(user, "<span class='warning'>Access denied.</span>")
return