Replaced display_name with name, worked on severing limbs and damage propagation.

This commit is contained in:
Zuhayr
2015-03-25 19:07:22 +10:30
parent f017764e64
commit 97112c8a4c
53 changed files with 420 additions and 389 deletions
+7 -3
View File
@@ -457,10 +457,14 @@ datum/objective/harm
var/mob/living/carbon/human/H = target.current
for(var/obj/item/organ/external/E in H.organs)
if(E.status & ORGAN_BROKEN)
already_completed = 1
return 1
if(E.status & ORGAN_DESTROYED && !E.amputated)
already_completed = 1
for(var/limb_type in H.species.has_limbs) //todo check prefs for robotic limbs and amputations.
var/found
for(var/obj/item/organ/external/E in H.organs)
if(limb_type == E.type)
found = 1
break
if(!found)
return 1
var/obj/item/organ/external/head/head = H.get_organ("head")