mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Cleaned it up, allows pocketing of deswords
This commit is contained in:
@@ -92,11 +92,9 @@
|
||||
user.put_in_inactive_hand(O)
|
||||
return TRUE
|
||||
|
||||
/obj/item/twohanded/mob_can_equip(mob/M, slot) //Unwields twohanded items if they're equipped on the back
|
||||
if(wielded && slot_flags)
|
||||
var/obj/item/twohanded/O = M.get_inactive_hand()
|
||||
if(istype(O))
|
||||
O.unwield(M)
|
||||
/obj/item/twohanded/mob_can_equip(mob/M, slot) //Unwields twohanded items when they're attempted to be equipped to another slot
|
||||
if(wielded)
|
||||
unwield(M)
|
||||
return ..()
|
||||
|
||||
/obj/item/twohanded/dropped(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user