Replaces iswrench() macro with an is_wrench() proc (#25528)

This commit is contained in:
jknpj
2019-12-28 13:29:40 -03:00
committed by Kurfursten
parent 9fce9621b0
commit 89abfd45ba
105 changed files with 151 additions and 147 deletions

View File

@@ -28,7 +28,7 @@
if(istype(W, /obj/item/device/analyzer))
bombtank.attackby(W, user)
return
if(iswrench(W) && !status) //This is basically bomb assembly code inverted. apparently it works.
if(W.is_wrench(user) && !status) //This is basically bomb assembly code inverted. apparently it works.
to_chat(user, "<span class='notice'>You disassemble [src].</span>")

View File

@@ -17,7 +17,7 @@
return
/obj/item/assembly/shock_kit/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(iswrench(W))
if(W.is_wrench(user))
var/turf/T = loc
if(ismob(T))
T = T.loc