From 13a87e907446e6cc77be7fbfc2f1b2c3bc6743f6 Mon Sep 17 00:00:00 2001 From: Joshua Kidder <49173900+Metekillot@users.noreply.github.com> Date: Sun, 7 Apr 2024 06:46:12 -0400 Subject: [PATCH] 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: --- 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