Skip to content

Commit

Permalink
firaview
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Oct 19, 2023
1 parent db2e1c0 commit 54652d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/_onclick/hud/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/atom/movable/screen/inventory
var/slot_id //The indentifier for the slot. It has nothing to do with ID cards.

/atom/movable/screen/inventory/New(loc, ...)
/atom/movable/screen/inventory/Initialize(mapload, ...)
. = ..()

RegisterSignal(src, COMSIG_ATOM_DROPPED_ON, PROC_REF(handle_dropped_on))
Expand Down Expand Up @@ -330,13 +330,15 @@
return 0

/atom/movable/screen/inventory/proc/handle_dropped_on(atom/dropped_on, atom/dropping, client/user)
if(slot_id != "l_hand" && slot_id != "r_hand")
SIGNAL_HANDLER

if(slot_id != WEAR_L_HAND && slot_id != WEAR_R_HAND)
return

if(!isstorage(dropping.loc))
return

if(!(locate(user.mob) in get_turf(dropping)))
if(!user.mob.Adjacent(dropping))
return

var/obj/item/storage/store = dropping.loc
Expand Down

0 comments on commit 54652d7

Please sign in to comment.