mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Improved storage UX of labcoats and similar. (#24404)
* Improved storage UX of labcoats and similar. * Don't runtime when forceMove is called during initializtion. * Update code/modules/clothing/suits/suit_storage.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Update code/modules/clothing/suits/suit_storage.dm Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> * Update code/modules/clothing/suits/suit_storage.dm Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --------- Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
This commit is contained in:
co-authored by
S34N
GDN
parent
e31fb48da5
commit
d5461d38c8
@@ -21,6 +21,28 @@
|
||||
if(pockets.handle_mousedrop(usr, over_object))
|
||||
..(over_object)
|
||||
|
||||
/obj/item/clothing/suit/storage/equipped(mob/user, slot)
|
||||
..()
|
||||
pockets.update_viewers()
|
||||
|
||||
/obj/item/clothing/suit/storage/forceMove(atom/destination)
|
||||
. = ..()
|
||||
if(ismob(destination.loc) || isnull(pockets))
|
||||
return
|
||||
|
||||
for(var/mob/player in pockets.mobs_viewing)
|
||||
if(player == destination)
|
||||
continue
|
||||
pockets.hide_from(player)
|
||||
|
||||
/obj/item/clothing/suit/storage/AltClick(mob/user)
|
||||
if(ishuman(user) && Adjacent(user) && !user.incapacitated(FALSE, TRUE))
|
||||
pockets.open(user)
|
||||
add_fingerprint(user)
|
||||
return
|
||||
if(isobserver(user))
|
||||
pockets.show_to(user)
|
||||
|
||||
/obj/item/clothing/suit/storage/attackby(obj/item/W as obj, mob/user as mob, params)
|
||||
..()
|
||||
return pockets.attackby(W, user, params)
|
||||
|
||||
Reference in New Issue
Block a user