mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
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 🆑 sound: Add keypad sounds to secure safes /🆑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user