From 11280fc22376a8a9182c5b265b1e98e386b0a8b0 Mon Sep 17 00:00:00 2001 From: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Date: Wed, 6 Aug 2025 01:38:01 +0100 Subject: [PATCH] Gives MMI/Robobrain/Posibrain EMP Immunity Inside Silicon Mobs (#29755) * Update MMI.dm * Apply suggestions from code review Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> --------- Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> --- code/modules/mob/living/brain/MMI.dm | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/brain/MMI.dm b/code/modules/mob/living/brain/MMI.dm index b897c48fd22..532e0353ceb 100644 --- a/code/modules/mob/living/brain/MMI.dm +++ b/code/modules/mob/living/brain/MMI.dm @@ -219,14 +219,17 @@ /obj/item/mmi/emp_act(severity) if(!brainmob) return - else - switch(severity) - if(1) - brainmob.emp_damage += rand(20,30) - if(2) - brainmob.emp_damage += rand(10,20) - if(3) - brainmob.emp_damage += rand(0,10) + + if(issilicon(loc)) // Silicons aren't affected by brain damage and there is no way to fix silicon brain damage either. + return + + switch(severity) + if(1) + brainmob.emp_damage += rand(20, 30) + if(2) + brainmob.emp_damage += rand(10, 20) + if(3) + brainmob.emp_damage += rand(0, 10) ..() /obj/item/mmi/Destroy()