From cd54fcf1af44e23a55bf1f2312b325ebb1fc2ea0 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 12 Jan 2022 03:23:21 +0100 Subject: [PATCH] [MIRROR] Stops the equipment menu from runtiming if the outfit has a skillchip [MDB IGNORE] (#10611) * Stops the equipment menu from runtiming if the outfit has a skillchip (#63929) * Stops the equipment menu from runtiming if the outfit has a skillchip Co-authored-by: Seth Scherer --- code/modules/admin/verbs/selectequipment.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/admin/verbs/selectequipment.dm b/code/modules/admin/verbs/selectequipment.dm index ed4368edf08..876435e4c7b 100644 --- a/code/modules/admin/verbs/selectequipment.dm +++ b/code/modules/admin/verbs/selectequipment.dm @@ -215,6 +215,10 @@ SSblackbox.record_feedback("tally", "admin_verb", 1, "Select Equipment") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc! for(var/obj/item/item in human_target.get_equipped_items(delete_pocket)) qdel(item) + + var/obj/item/organ/brain/human_brain = human_target.getorganslot(BRAIN) + human_brain.destroy_all_skillchips() // get rid of skillchips to prevent runtimes + if(dresscode != "Naked") human_target.equipOutfit(dresscode)