mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Secure safe, secure briefcase, and vaults improvements (#93085)
Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com>
This commit is contained in:
@@ -85,10 +85,17 @@
|
||||
icon_state = "secure"
|
||||
base_icon_state = "secure"
|
||||
inhand_icon_state = "sec-case"
|
||||
var/stored_lock_code
|
||||
|
||||
/obj/item/storage/briefcase/secure/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/lockable_storage)
|
||||
AddComponent(/datum/component/lockable_storage, stored_lock_code)
|
||||
RegisterSignal(src, COMSIG_LOCKABLE_STORAGE_SET_CODE, PROC_REF(update_lock_code))
|
||||
|
||||
/obj/item/storage/briefcase/secure/proc/update_lock_code(obj/item/storage/briefcase/secure/briefacase, new_code)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
stored_lock_code = new_code
|
||||
|
||||
/// Base container used for gimmick disks.
|
||||
/obj/item/storage/briefcase/secure/digital_storage
|
||||
|
||||
Reference in New Issue
Block a user