mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
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:
co-authored by
Ryan
adrermail@gmail.com <adrermail@gmail.com>
parent
20b2f075f2
commit
f876aed294
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user