From d4aa3fb202a56abeb41a2c78772a2524d829a09a Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 10 Jun 2026 20:27:04 -0500 Subject: [PATCH] Add keypad sounds to secure safes (#96412) ## About The Pull Request This adds the typing/keypad sound used on many consoles when you interact with a secure safe. ## Why It's Good For The Game Better sounds. ## Changelog :cl: sound: Add keypad sounds to secure safes /:cl: --- code/datums/components/lockable_storage.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/datums/components/lockable_storage.dm b/code/datums/components/lockable_storage.dm index 51a0e48be6c..a31888789b1 100644 --- a/code/datums/components/lockable_storage.dm +++ b/code/datums/components/lockable_storage.dm @@ -226,11 +226,14 @@ . = ..() if(action != "keypad") return TRUE + + var/atom/source = parent + playsound(source, SFX_TERMINAL_TYPE, 50, FALSE) + var/digit = params["digit"] switch(digit) //locking it back up if("C") - var/atom/source = parent numeric_input = "" //you can't lock it if it's already locked or lacks a lock code. if(source.atom_storage.locked || isnull(lock_code)) @@ -249,7 +252,6 @@ //unlocking the current code. if(numeric_input != lock_code) return TRUE - var/atom/source = parent source.atom_storage.set_locked(STORAGE_NOT_LOCKED) numeric_input = "" return TRUE