Can now attack robots with welders and crowbars on harm intent

This commit is contained in:
parasitoide
2019-10-18 10:48:58 -04:00
committed by GitHub
parent 5c849287c5
commit fbc27e6b34

View File

@@ -487,7 +487,7 @@
M.install(src, user)
return
if (istype(W, /obj/item/weapon/weldingtool))
if (istype(W, /obj/item/weapon/weldingtool) && user.a_intent != I_HURT)
if (src == user)
to_chat(user, "<span class='warning'>You lack the reach to be able to repair yourself.</span>")
return
@@ -519,7 +519,7 @@
for(var/mob/O in viewers(user, null))
O.show_message(text("<font color='red'>[user] has fixed some of the burnt wires on [src]!</font>"), 1)
else if (W.is_crowbar()) // crowbar means open or close the cover
else if (W.is_crowbar() && user.a_intent != I_HURT) // crowbar means open or close the cover
if(opened)
if(cell)
to_chat(user, "You close the cover.")