Robotic Basic and Simple mobs now take damage from EMPs (#64752)

Simple/basic mobs with ROBOTIC biotype get damaged by emps
This commit is contained in:
GoblinBackwards
2022-03-01 20:38:34 +01:00
committed by GitHub
parent b08e5d1e77
commit 15cfe0b1ec
2 changed files with 24 additions and 0 deletions
@@ -186,3 +186,15 @@
else
set_stat(CONSCIOUS)
med_hud_set_status()
/mob/living/basic/emp_act(severity)
. = ..()
if(mob_biotypes & MOB_ROBOTIC)
switch (severity)
if (EMP_LIGHT)
visible_message(span_danger("[src] shakes violently, its parts coming loose!"))
apply_damage(maxHealth * 0.6)
Shake(5, 5, 1 SECONDS)
if (EMP_HEAVY)
visible_message(span_danger("[src] suddenly bursts apart!"))
apply_damage(maxHealth)