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:
warriorstar-orion
2025-01-10 01:58:35 +00:00
committed by GitHub
parent 17602326bc
commit 0eafad8475
213 changed files with 587 additions and 585 deletions
+8 -8
View File
@@ -11,7 +11,7 @@
if(notransform)
return
for(var/obj/item/W in src)
unEquip(W)
drop_item_to_ground(W)
notransform = TRUE
icon = null
invisibility = 101
@@ -56,7 +56,7 @@
if(notransform)
return
for(var/obj/item/W in src)
unEquip(W)
drop_item_to_ground(W)
notransform = TRUE
icon = null
@@ -124,7 +124,7 @@
if(notransform)
return
for(var/obj/item/W in src)
unEquip(W)
drop_item_to_ground(W)
regenerate_icons()
notransform = TRUE
icon = null
@@ -154,7 +154,7 @@
return
notransform = TRUE
for(var/obj/item/I in src)
unEquip(I)
drop_item_to_ground(I)
regenerate_icons()
icon = null
invisibility = INVISIBILITY_MAXIMUM
@@ -185,7 +185,7 @@
if(notransform)
return
for(var/obj/item/W in src)
unEquip(W)
drop_item_to_ground(W)
regenerate_icons()
notransform = TRUE
icon = null
@@ -211,7 +211,7 @@
if(notransform)
return
for(var/obj/item/W in src)
unEquip(W)
drop_item_to_ground(W)
regenerate_icons()
notransform = TRUE
@@ -250,7 +250,7 @@
if(notransform)
return
for(var/obj/item/W in src)
unEquip(W)
drop_item_to_ground(W)
regenerate_icons()
notransform = TRUE
icon = null
@@ -279,7 +279,7 @@
return
for(var/obj/item/W in get_all_slots())
unEquip(W)
drop_item_to_ground(W)
regenerate_icons()
notransform = TRUE