Merge pull request #1234 from Yoshax/IB

Fixes IB surgery not checking for open ribs etc
This commit is contained in:
Neerti
2016-03-23 20:42:48 -04:00

View File

@@ -27,7 +27,7 @@
internal_bleeding = 1
break
return affected.open >= 2 && internal_bleeding
return affected.open == (affected.encased ? 3 : 2) && internal_bleeding
begin_step(mob/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)
@@ -206,4 +206,4 @@
fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
user.visible_message("<span class='danger'>[user]'s [tool] can't quite seem to get through the metal...</span>", \
"<span class='danger'>Your [tool] can't quite seem to get through the metal. It's weakening, though - try again.</span>")
"<span class='danger'>Your [tool] can't quite seem to get through the metal. It's weakening, though - try again.</span>")