From ca2caae240fa32cdd5b0fa1d873fad35a57022f6 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:16:29 +0200 Subject: [PATCH] [MIRROR] makes broken chameleon kit items immune to being EMP'd to unbreak them (#27217) * makes broken chameleon kit items immune to being EMP'd to unbreak them (#82495) ## About The Pull Request Broken chameleon kits can be EMP'd to un-break them. This fixes that and makes them permanently broken. ## Why It's Good For The Game Patching a possible exploit Fixes #82454 ## Changelog Broken chameleon kits can't be unbroken by an EMP. :cl: fix: Broken chameleon kits can't be unbroken by an EMP. /:cl: * makes broken chameleon kit items immune to being EMP'd to unbreak them --------- Co-authored-by: Joshua Kidder <49173900+Metekillot@users.noreply.github.com> Co-authored-by: Waterpig <49160555+Majkl-J@users.noreply.github.com> --- code/modules/clothing/chameleon/generic_chameleon_clothing.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/clothing/chameleon/generic_chameleon_clothing.dm b/code/modules/clothing/chameleon/generic_chameleon_clothing.dm index f73b5b13da7..63bede9ec88 100644 --- a/code/modules/clothing/chameleon/generic_chameleon_clothing.dm +++ b/code/modules/clothing/chameleon/generic_chameleon_clothing.dm @@ -3,6 +3,7 @@ do { \ var/datum/action/item_action/chameleon/change/_action = locate() in item.actions; \ _action?.emp_randomise(INFINITY); \ + item.AddElement(/datum/element/empprotection, EMP_PROTECT_SELF); \ } while(FALSE) // Cham jumpsuit