Adds alt-clicking to open containers (#11748)

This commit is contained in:
Shadow
2021-04-28 16:42:41 +02:00
committed by GitHub
parent 6c03b71454
commit f43fb24d54
3 changed files with 26 additions and 0 deletions
@@ -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()