From 32e440a3570952efcf4c70c475a1e42732981c55 Mon Sep 17 00:00:00 2001 From: WeNeedMorePhoron <132836028+WeNeedMorePhoron@users.noreply.github.com> Date: Thu, 25 May 2023 18:25:16 -0500 Subject: [PATCH] Add alt-click open container --- code/game/objects/items/weapons/storage/storage.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/objects/items/weapons/storage/storage.dm b/code/game/objects/items/weapons/storage/storage.dm index 5cca1dd07d..9b25001c49 100644 --- a/code/game/objects/items/weapons/storage/storage.dm +++ b/code/game/objects/items/weapons/storage/storage.dm @@ -7,6 +7,7 @@ w_class = ITEM_SIZE_NORMAL item_flags = DRAG_AND_DROP_UNEQUIP|EQUIP_SOUNDS spawn_tags = SPAWN_TAG_STORAGE + description_info = "Drag and drop onto yourself, alt-click or left-click to open the container. You cannot take items out of a container inside another container" // Occulus Edit Desc bad_type = /obj/item/storage var/list/can_hold = new/list() //List of objects which this item can store (if set, it can't store anything else) var/list/can_hold_extra = list() //List of objects which this item can additionally store not defined by the parent. @@ -206,6 +207,11 @@ close_all() . = ..() +// Occulus Edit: AltClick QOL +/obj/item/storage/AltClick(mob/user) + if(ishuman(usr) && !usr.incapacitated() && Adjacent(usr)) + src.open(user) + /obj/item/storage/MouseDrop(obj/over_object) if(ishuman(usr) && usr == over_object && !usr.incapacitated() && Adjacent(usr)) return src.open(usr)