mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Fixes the crusher, and future twohands required items, equipping to slots (#22712)
* If plants have slotflags they can now be equipped * now you can have more than one slot_flag
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
|
||||
/obj/item/weapon/twohanded/equipped(mob/user, slot)
|
||||
..()
|
||||
if(!user.is_holding(src) && wielded)
|
||||
if(!user.is_holding(src) && wielded && !istype(src, /obj/item/weapon/twohanded/required))
|
||||
unwield(user)
|
||||
|
||||
///////////OFFHAND///////////////
|
||||
@@ -165,6 +165,9 @@
|
||||
|
||||
/obj/item/weapon/twohanded/required/equipped(mob/user, slot)
|
||||
..()
|
||||
var/slotbit = slotdefine2slotbit(slot)
|
||||
if(slot_flags & slotbit)
|
||||
return
|
||||
if(slot == slot_hands)
|
||||
wield(user)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user