mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 12:37:50 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
@@ -105,15 +105,16 @@
|
||||
if(!(robotic >= ORGAN_ROBOT))
|
||||
return
|
||||
var/burn_damage = 0
|
||||
switch (severity)
|
||||
if (1)
|
||||
burn_damage += rand(8, 13)
|
||||
if (2)
|
||||
burn_damage += rand(6, 9)
|
||||
if(3)
|
||||
burn_damage += rand(4, 7)
|
||||
if(4)
|
||||
burn_damage += rand(1, 5)
|
||||
for(var/i = 1; i <= robotic; i++)
|
||||
switch (severity)
|
||||
if (1)
|
||||
burn_damage += rand(5, 8)
|
||||
if (2)
|
||||
burn_damage += rand(4, 6)
|
||||
if(3)
|
||||
burn_damage += rand(2, 5)
|
||||
if(4)
|
||||
burn_damage += rand(1, 3)
|
||||
|
||||
if(burn_damage)
|
||||
take_damage(0, burn_damage)
|
||||
|
||||
Reference in New Issue
Block a user