Polaris-able surgery fix

This commit is contained in:
Arokha Sieyes
2017-06-03 00:36:03 -04:00
parent 35230b4e7c
commit c829a195e1

View File

@@ -13,22 +13,22 @@
return affected && affected.open == (affected.encased ? 3 : 2) && !(affected.status & ORGAN_BLEEDING) return affected && affected.open == (affected.encased ? 3 : 2) && !(affected.status & ORGAN_BLEEDING)
proc/get_max_wclass(var/obj/item/organ/external/affected) proc/get_max_wclass(var/obj/item/organ/external/affected)
switch (affected.name) switch (affected.organ_tag)
if ("head") if (BP_HEAD)
return 1 return ITEMSIZE_TINY
if ("upper body") if (BP_TORSO)
return 3 return ITEMSIZE_NORMAL
if ("lower body") if (BP_GROIN)
return 2 return ITEMSIZE_SMALL
return 0 return 0
proc/get_cavity(var/obj/item/organ/external/affected) proc/get_cavity(var/obj/item/organ/external/affected)
switch (affected.name) switch (affected.organ_tag)
if ("head") if (BP_HEAD)
return "cranial" return "cranial"
if ("upper body") if (BP_TORSO)
return "thoracic" return "thoracic"
if ("lower body") if (BP_GROIN)
return "abdominal" return "abdominal"
return "" return ""