Skip to content

Commit

Permalink
Fixes AIize and borgize (#80393) (#380)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
2 people authored and Iajret committed Jan 10, 2024
1 parent 402f6e4 commit 6aae868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions code/modules/mob/transform_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..()

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/surgery/bodyparts/parts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6aae868

Please sign in to comment.