mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
Merge pull request #11042 from VOREStation/Arokha/altstorage
Storage alt-click support
This commit is contained in:
committed by
Chompstation Bot
parent
796c58e062
commit
54af7b4f8a
@@ -158,6 +158,15 @@
|
||||
usr.put_in_l_hand(src)
|
||||
src.add_fingerprint(usr)
|
||||
|
||||
/obj/item/weapon/storage/AltClick(mob/user)
|
||||
if(user in is_seeing)
|
||||
src.close(user)
|
||||
// I would think there should be some incap check here or something
|
||||
// But MouseDrop doesn't use one (as of this writing), so...
|
||||
else if(isliving(user) && Adjacent(user))
|
||||
src.open(user)
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/storage/proc/return_inv()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user