Stops the equipment menu from runtiming if the outfit has a skillchip (#63929)

This commit is contained in:
Seth Scherer
2022-01-11 16:15:18 -05:00
committed by GitHub
parent cbe7960c81
commit cb2119a812
@@ -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)