mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Fix belt disappearing on mouse drop (#28188)
* Fix belt disappearing on mouse drop * Update code/game/objects/items/weapons/storage/belt.dm Co-authored-by: Spaghetti-bit <yumyumkillkill@gmail.com> Signed-off-by: Mikhail Dzianishchyts <mikhail.dzianishchyts@gmail.com> --------- Signed-off-by: Mikhail Dzianishchyts <mikhail.dzianishchyts@gmail.com> Co-authored-by: Spaghetti-bit <yumyumkillkill@gmail.com>
This commit is contained in:
co-authored by
Spaghetti-bit
parent
2668bd4c9e
commit
d49c1b2a2f
@@ -63,26 +63,8 @@
|
||||
return is_equipped()
|
||||
|
||||
/obj/item/storage/belt/MouseDrop(obj/over_object, src_location, over_location)
|
||||
var/mob/M = usr
|
||||
if(!is_screen_atom(over_object))
|
||||
return ..()
|
||||
..()
|
||||
playsound(loc, "rustle", 50, TRUE, -5)
|
||||
if(!M.restrained() && !M.stat && can_use())
|
||||
switch(over_object.name)
|
||||
if("r_hand")
|
||||
if(M.unequip(src))
|
||||
if(M.r_hand)
|
||||
M.drop_item_to_ground(src)
|
||||
else
|
||||
M.put_in_r_hand(src)
|
||||
if("l_hand")
|
||||
if(M.unequip(src))
|
||||
if(M.l_hand)
|
||||
M.drop_item_to_ground(src)
|
||||
else
|
||||
M.put_in_l_hand(src)
|
||||
add_fingerprint(usr)
|
||||
return
|
||||
|
||||
/obj/item/storage/belt/deserialize(list/data)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user