mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user