Decapitation now stops defibrillation

This commit is contained in:
Anewbe
2017-11-14 01:15:29 -06:00
parent 86f8b6cf1d
commit f5e831050b
3 changed files with 5 additions and 1 deletions
@@ -15,6 +15,8 @@
var/spit_name = null //String
var/last_spit = 0 //Timestamp.
var/can_defib = 1 //Horrible damage (like beheadings) will prevent defibbing organics.
/mob/living/carbon/human/New(var/new_loc, var/new_species = null)
if(!dna)
+2
View File
@@ -279,6 +279,8 @@
spawn(1)
owner.update_hair()
get_icon()
if(vital) //This is just in case we ever add something that both a) Doesn't need a head to live, and b) Can be defibbed
owner.can_defib = 0
..()
/obj/item/organ/external/head/take_damage(brute, burn, sharp, edge, used_weapon = null, list/forbidden_limbs = list())