mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Refactor /mob/unEquip. (#27720)
* Refactor /mob/unEquip. * fix things found in testing * more fixes from testing * fix removal of hooded suits * fix flayers inability to deploy swarmprod * fix changeling blade activation * unnecessary parens * pass default unequip args to proc overrides * fix belts being able to forceMove into full hands
This commit is contained in:
@@ -263,7 +263,7 @@
|
||||
|
||||
/// A utility function for `/datum/strippable_item`s to finish unequipping an item from a mob.
|
||||
/proc/finish_unequip_mob(obj/item/item, mob/source, mob/user)
|
||||
if(!source.unEquip(item))
|
||||
if(!source.drop_item_to_ground(item))
|
||||
return
|
||||
|
||||
add_attack_logs(user, source, "Stripping of [item]")
|
||||
@@ -427,7 +427,7 @@
|
||||
return
|
||||
|
||||
// make sure to drop the item
|
||||
if(!user.unEquip(held_item))
|
||||
if(!user.drop_item_to_ground(held_item))
|
||||
return
|
||||
|
||||
strippable_item.finish_equip(owner, held_item, user)
|
||||
|
||||
Reference in New Issue
Block a user