Merge branch 'master' into development

This commit is contained in:
skull132
2017-05-16 14:46:36 +03:00
22 changed files with 132 additions and 14 deletions
+5 -1
View File
@@ -501,7 +501,7 @@ obj/structure/cable/proc/cableColor(var/colorC)
///////////////////////////////////
//you can use wires to heal robotics
/obj/item/stack/cable_coil/afterattack(var/mob/M, var/mob/user)
/obj/item/stack/cable_coil/afterattack(var/mob/living/M, var/mob/user)
if(ishuman(M))
var/mob/living/carbon/human/H = M
@@ -511,6 +511,10 @@ obj/structure/cable/proc/cableColor(var/colorC)
if(!(S.status & ORGAN_ROBOT) || user.a_intent != I_HELP)
return ..()
if(M.isSynthetic() && M == user)
user << "<span class='warning'>You can't repair damage to your own body - it's against OH&S.</span>"
return
if(S.burn_dam)
if(S.burn_dam < ROBOLIMB_SELF_REPAIR_CAP)
S.heal_damage(0,15,0,1)