VeyMed limbs (and organs) are now more vulnerable to EMP (#4987)

* VeyMed limbs (and organs) are now more vulnerable to EMP

* Changelog
This commit is contained in:
Anewbe
2018-03-06 15:02:06 -06:00
committed by Atermonera
parent 982840c14c
commit 14f48b84cd
3 changed files with 57 additions and 18 deletions

View File

@@ -294,15 +294,16 @@ var/list/organ_cache = list()
/obj/item/organ/emp_act(severity)
if(!(robotic >= ORGAN_ASSISTED))
return
switch (severity)
if (1)
take_damage(rand(6,12))
if (2)
take_damage(rand(4,8))
if (3)
take_damage(rand(3,6))
if (4)
take_damage(rand(1,4))
for(var/i = 1; i <= robotic; i++)
switch (severity)
if (1)
take_damage(rand(5,9))
if (2)
take_damage(rand(3,7))
if (3)
take_damage(rand(2,5))
if (4)
take_damage(rand(1,3))
/obj/item/organ/proc/removed(var/mob/living/user)