mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
Adds alt-clicking to open containers (#11748)
This commit is contained in:
@@ -138,6 +138,10 @@
|
||||
to_chat(user, (feedback ? feedback : "You short out the lock of \the [src]."))
|
||||
return 1
|
||||
|
||||
/obj/item/storage/secure/AltClick(/mob/user)
|
||||
if (!locked)
|
||||
return ..()
|
||||
|
||||
// -----------------------------
|
||||
// Secure Briefcase
|
||||
// -----------------------------
|
||||
|
||||
@@ -93,6 +93,15 @@
|
||||
usr.equip_to_slot_if_possible(src, slot_l_hand)
|
||||
src.add_fingerprint(usr)
|
||||
|
||||
/obj/item/storage/AltClick(var/mob/usr)
|
||||
if(!canremove)
|
||||
return ..()
|
||||
if (!use_check_and_message(usr))
|
||||
add_fingerprint(usr)
|
||||
open(usr)
|
||||
return TRUE
|
||||
. = ..()
|
||||
|
||||
/obj/item/storage/proc/return_inv()
|
||||
. = contents.Copy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user