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.
This commit is contained in:
DeltaFire
2020-11-13 03:39:55 +01:00
parent 1961e1ed3c
commit 5820690eba
@@ -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)