if amputated full arm or leg, make hand or foot amputated too

This commit is contained in:
Ater Ignis
2012-11-16 19:00:45 +04:00
parent 8c5b8f8d50
commit a96e4c3600
2 changed files with 2 additions and 0 deletions

View File

@@ -959,6 +959,7 @@ proc/spread_germs_to_organ(datum/organ/external/E, mob/living/carbon/human/user)
"\blue You have finished adjusting the area around [target]'s [affected.display_name] with \the [tool].") "\blue You have finished adjusting the area around [target]'s [affected.display_name] with \the [tool].")
affected.status |= ORGAN_ATTACHABLE affected.status |= ORGAN_ATTACHABLE
affected.amputated = 1 affected.amputated = 1
affected.setAmputatedTree()
affected.open = 0 affected.open = 0
fail_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool) fail_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)

View File

@@ -322,6 +322,7 @@
for(var/datum/organ/external/O in owner.organs) for(var/datum/organ/external/O in owner.organs)
if(O.parent == src) if(O.parent == src)
O.amputated=amputated O.amputated=amputated
O.setAmputatedTree()
proc/droplimb(var/override = 0,var/no_explode = 0) proc/droplimb(var/override = 0,var/no_explode = 0)
if(destspawn) return if(destspawn) return