Makes it impossible to deploy an arm implant while wielding a twohanded item. (#20199)

* Arm implant no longer overrides offhand wield

* Sirryan2002 suggestion

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Adrer
2023-01-16 14:42:43 -05:00
committed by GitHub
co-authored by Ryan adrermail@gmail.com <adrermail@gmail.com>
parent 20b2f075f2
commit f876aed294
+5 -1
View File
@@ -117,7 +117,11 @@
var/obj/item/arm_item = owner.get_item_by_slot(arm_slot)
if(arm_item)
if(!owner.unEquip(arm_item))
if(istype(arm_item, /obj/item/twohanded/offhand))
var/obj/item/offhand_arm_item = owner.get_active_hand()
to_chat(owner, "<span class='warning'>Your hands are too encumbered wielding [offhand_arm_item] to deploy [src]!</span>")
return
else if(!owner.unEquip(arm_item))
to_chat(owner, "<span class='warning'>Your [arm_item] interferes with [src]!</span>")
return
else