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>
This commit is contained in:
CRUNCH
2025-08-06 01:38:01 +01:00
committed by GitHub
parent e35ff2dcb2
commit 11280fc223
+11 -8
View File
@@ -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()