Fixing two handed items and etcetera.

This commit is contained in:
Ghommie
2020-06-30 16:24:04 +02:00
parent 28fd6304e2
commit cd1c5511a4
5 changed files with 13 additions and 7 deletions

View File

@@ -89,7 +89,7 @@
/// Triggered on equip of the item containing the component
/datum/component/two_handed/proc/on_equip(datum/source, mob/user, slot)
if(require_twohands && slot == ITEM_SLOT_HANDS) // force equip the item
if(require_twohands && slot == SLOT_HANDS) // force equip the item
wield(user)
if(!user.is_holding(parent) && wielded && !require_twohands)
unwield(user)