From 6aae8680b915363368f4639dc991177624d2c9e0 Mon Sep 17 00:00:00 2001 From: Bloop <13398309+vinylspiders@users.noreply.github.com> Date: Tue, 9 Jan 2024 08:19:11 -0500 Subject: [PATCH] Fixes AIize and borgize (#80393) (#380) Fixes AIize and borgize (#80393) Fixes #80314 Fixes these two admin procs. I have no idea what posessed the coder of AIize, they were just deleting every bodypart prior to qdelling the mob?? :cl: fix: Fixes AIize and borgize gibbing you /:cl: Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> --- code/modules/mob/transform_procs.dm | 9 ++------- code/modules/surgery/bodyparts/parts.dm | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 068c6c98366..ca82e13e803 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -127,8 +127,6 @@ /mob/living/carbon/human/AIize(client/preference_source, transfer_after = TRUE) if(HAS_TRAIT(src, TRAIT_NO_TRANSFORM)) return - for(var/t in bodyparts) - qdel(t) return ..() @@ -173,11 +171,8 @@ ADD_TRAIT(src, TRAIT_NO_TRANSFORM, TEMPORARY_TRANSFORMATION_TRAIT) Paralyze(1, ignore_canstun = TRUE) - for(var/obj/item/W in src) - if(delete_items) - qdel(W) - else - dropItemToGround(W) + drop_everything(delete_items) + regenerate_icons() icon = null SetInvisibility(INVISIBILITY_MAXIMUM) diff --git a/code/modules/surgery/bodyparts/parts.dm b/code/modules/surgery/bodyparts/parts.dm index 5f40b14c02d..c657e89cefd 100644 --- a/code/modules/surgery/bodyparts/parts.dm +++ b/code/modules/surgery/bodyparts/parts.dm @@ -42,7 +42,7 @@ //If someones chest is teleported away, they die pretty hard if(!old_owner) return - message_admins("[ADMIN_LOOKUPFLW(old_owner)] was gibbed after their chest teleport to [ADMIN_VERBOSEJMP(loc)].") + message_admins("[ADMIN_LOOKUPFLW(old_owner)] was gibbed after their chest teleported to [ADMIN_VERBOSEJMP(loc)].") old_owner.gib(DROP_ALL_REMAINS) /obj/item/bodypart/chest/can_dismember(obj/item/item)