From 5820690eba8da9329bedf824025bf1e40e0f5c38 Mon Sep 17 00:00:00 2001 From: DeltaFire Date: Fri, 13 Nov 2020 03:39:55 +0100 Subject: [PATCH] EMPs cause system corruption, a bunch of it EMPs now cause severity / 5 system corruption. Considering severity goes from 1 to 100, this is effectively 0.2 - 20 corruption per pulse Might be a bit too high, if it is severity / 10 should definitively be alright. Or even a nonlinear amount. --- code/modules/mob/living/carbon/carbon_defense.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/carbon_defense.dm b/code/modules/mob/living/carbon/carbon_defense.dm index b70eb64164..01df737f58 100644 --- a/code/modules/mob/living/carbon/carbon_defense.dm +++ b/code/modules/mob/living/carbon/carbon_defense.dm @@ -212,6 +212,8 @@ . = ..() if(. & EMP_PROTECT_CONTENTS) return + if(HAS_TRAIT(src, TRAIT_ROBOTIC_ORGANISM)) + adjustToxLoss(severity/5, toxins_type = TOX_SYSCORRUPT) //EMPs fuck robots over. Up to 20 corruption per EMP if hit by the full power. Might be a bit high, subject to change if it is. for(var/X in internal_organs) var/obj/item/organ/O = X O.emp_act(severity)