Merge pull request #2905 from Crazylemon64/robolimb_recognition

Advanced structural roborepair fixes disfigured bits
This commit is contained in:
Fox McCloud
2015-12-21 05:59:05 -05:00
+4
View File
@@ -156,6 +156,10 @@
user.visible_message("\blue [user] finishes patching damage to [target]'s [affected.name] with \the [tool].", \
"\blue You finish patching damage to [target]'s [affected.name] with \the [tool].")
affected.heal_damage(rand(30,50),0,1,1)
if(affected.disfigured)
affected.disfigured = 0
affected.update_icon()
target.regenerate_icons()
fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
var/obj/item/organ/external/affected = target.get_organ(target_zone)